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
![Screenshot 2023-02-17 at 12 39 31 PM](https://user-images.githubusercontent.com/82951880/219574201-dfccc586-a837-45e4-b7cd-e7ce9d2bc139.png)
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