Implement better environment variables management for Hydrogen #55
Closed
Description
https://shopify.dev/beta/hydrogen/framework/secrets
- If a dev wants to provide a secret, they have to use
VITE_
and reference withimport.meta.env
- However, Vite warns that this explicitly makes the secret public (ends up in a public build)
- This is not good, and we should provide another solution
This issue is interesting, and perhaps there will be movement in this area: vitejs/vite#3176 (comment)