Replies: 1 comment 2 replies
-
I have same issue. We have also |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have client-side components that need to make API calls to 3rd party resources.
We've created a .env and have defined PUBLIC_* variables to contain the necessary values.
In our localhosts, import.meta.env.PUBLIC_* is working fine.
When we deploy to Oxygen, we're getting "undefined" for all our PUBLIC_* variables despite having defined them within the Shopify interface for environment variables.
I have also tried addressing this using Oxygen.env.PUBLIC_* in our client components, but with the same "undefined" results.
The docs and related GitHub discussions don't seem to clearly indicate how to use Oxygen environment variables in client components.
How is this supposed to work?
Beta Was this translation helpful? Give feedback.
All reactions