Skip to content
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

Support for environment variables? #60

Closed
marcaaron opened this issue Aug 16, 2018 · 2 comments
Closed

Support for environment variables? #60

marcaaron opened this issue Aug 16, 2018 · 2 comments
Labels

Comments

@marcaaron
Copy link

Is there a current workaround for the need for an absolute url endpoint?
Attempts to pass process.env.* fail with error.

@Redmega
Copy link
Contributor

Redmega commented Aug 18, 2018

You should be able to use env. vars. For example that's how I'm using:

process.env.GRAPHCMS_TOKEN.

What is the error you're getting? How are you declaring the env var?

@marcaaron
Copy link
Author

Ok! I think it must have been a silly typo. Seems to be working now.

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

No branches or pull requests

2 participants