Skip to content

Name space development ENV. Don't use process.env.LOCAL if you want this library to work. #627

@izakfilmalter

Description

@izakfilmalter

Just ran into an issue that was super annoying. My app has process.env.LOCAL, and so does this lib. I think library env should have some name spacing, eg process.env.STREAM_JS_LOCAL. This caused a really annoying and hard to track down issue where I would just get [SiteError] with no message from the API.

if ((typeof process !== 'undefined' && process.env?.LOCAL) || this.options.local)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions