Skip to content

GraphQL plugin is not loading environment variables from .env file #733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
arkandias opened this issue Jan 14, 2025 · 0 comments
Open

Comments

@arkandias
Copy link

I'm using GraphQL plugin (243.22562.13) in WebStorm 2024.3.1.1.

Here is my graphql.config.yml file (in project root):

schema: schema.graphql
extensions:
  endpoints:
    dev:
      url: ${ENDPOINT}
documents: "**/*.graphql"

And here is my .env file (in project root):

ENDPOINT=http://localhost:8090/v1/graphql

Yet the plugin does not replace ${ENDPOINT} with its value from .env.
I can edit it in the "GraphQL Environment Variables" dialog that I can open by clicking on the "Edit Environment Variables" button in the plugin toolbar, but it should be loaded automatically from the .env file (according to the doc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant