Skip to content

Implement better environment variables management for Hydrogen #55

Closed
@jplhomer

Description

https://shopify.dev/beta/hydrogen/framework/secrets

  • If a dev wants to provide a secret, they have to use VITE_ and reference with import.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)

Metadata

Assignees

Labels

frameworkRelated to framework aspects of Hydrogen

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions