-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate Oxygen.env in favor of Hydrogen.env #2150
base: v1.x-2022-07
Are you sure you want to change the base?
Conversation
@@ -4,10 +4,7 @@ title: Environment variables | |||
description: Learn how to store sensitive information in your Hydrogen project. | |||
--- | |||
|
|||
Environment variables, also known as secrets, allow you to load different values in your app depending on the running environment. This guide describes how to store environment variables in your Hydrogen project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still thinking if we should provide Hydrogen.env
in the browser with all the public variables... other than that, I think this is clear since now we don't have a distinction between public and private variables anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs and code changes make sense 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks good, thanks! I was worried about the behavior around PUBLIC_
but I see it was already changed in Shopify/hydrogen@7f97229 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Content looks good, just a couple suggestions
@blittle make sure you tophat this on .dev before shipping |
Co-authored-by: Ren Chaturvedi <[email protected]>
Description
Oxygen.env
is now deprecated in favor ofHydrogen.env
. Access environment variables within your server components onHydrogen.env
. We hope this will make more sense when deploying to non-Oxygen environments.Additional context
Part of Shopify/hydrogen#1879
Before submitting the PR, please make sure you do the following:
fixes #123
)yarn changeset add
if this PR cause a version bump based on Keep a Changelog and adheres to Semantic Versioning