Skip to content

Incorrectly named Environment Variables(?) #19

@adrianMustard

Description

@adrianMustard

Within sdk/index.ts, lines 54-57 declare stackDetails.apiKey and stackDetails.environment from environment variables:

  stackDetails: {
    apiKey: `${import.meta.env.VITE_API_KEY}`,
    environment: `${import.meta.env.VITE_ENVIRONMENT}`,
  },

These environment variables are not documented within env.sample.

My assumption is that these properties should in fact reference the following ENV variables:

  • VITE_API_KEY -> VITE_CONTENTSTACK_API_KEY
  • VITE_ENVIRONMENT -> VITE_CONTENTSTACK_ENVIRONMENT

If this is correct, the referenced ENV variables on lines 55-56 should be updated to avoid confusion.

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