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

[BUG] unclear docs regarding environment variable usage #2505

Open
diemonster opened this issue Apr 5, 2023 · 0 comments
Open

[BUG] unclear docs regarding environment variable usage #2505

diemonster opened this issue Apr 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@diemonster
Copy link

Describe the bug
The Hydrogen v1 docs don't give much/any guidance around using environment variables in a project:
https://shopify.github.io/hydrogen-v1/

For example, I would like to make a fetch request to a 3rd party API that requires authentication headers. The request would be made via a server-side Hydrogen /api route that I call from a client component. As such, I would like to put the auth token for this request in an environment variable that gets interpolated at runtime.

I've seen some other conversations in the old issues for this project discussing Vite env vars, and oddness with Oxygen, but I'm not sure where things ended up landing and I'd like to get the latest recommendation.

@diemonster diemonster added the bug Something isn't working label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant