How can i add .env to hydrogen project? #536
Unanswered
lagahrajan
asked this question in
Help
Replies: 1 comment 2 replies
-
👋. Seems you are using hydrogen v1 https://github.com/Shopify/hydrogen-v1. |
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
-
Right now if i add .env or .env.local at the root of my project like
.env
and try to access it lets say
console.log(process.env) it log env variables in my console without
PRIVATE_STOREFRONT_API_TOKEN
in it and in browser it throw exceptionBeta Was this translation helpful? Give feedback.
All reactions