Skip to content

how to pass environment variable to shopify config on cloudflare workers? #2343

Answered by frandiox
yangcheng asked this question in Help
Discussion options

You must be logged in to vote

When deploying to a platform different from Oxygen, you need to polyfill the global Oxygen.env with something like this. Then, it should be possible to reference Oxygen.env.MY_VARIABLE from hydrogen.config.js without issues.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yangcheng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants