-
Notifications
You must be signed in to change notification settings - Fork 2k
fix: update env variables supported by nitro #10176
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@pi0 is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
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.
Thank you for the PR!
This gets us to a better spot since --env-mode=loose
use could lead to a cache hit from a build that inferred a different provider preset.
b892a26
to
3b6734d
Compare
#9860
Deployment providers provide environmental variables to be detected.
Nitro uses this mechanism to auto-detect deployment providers when building.
I have made a handcrafted list of some common items to nuxt and nitro frameworks +
SERVER_*
(nitro supported env).Important
This list will be most likely updated over time, meaning turborepo support will be broken from time to time and need to manually be updated. Nitro uses std-env as source of this list.
Note
Having list of provider envs under each framework, means that turborepo does not supports platform envs for frameworks not explicitly listed in this json (there are already few nitro based ones missing)