Skip to content

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

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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