-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add env wildcards for framework Nitro NITRO_* #8504
Comments
Works for me! Code is here for you, future me, or anyone else that wants to make this PR:
|
I will do a PR, also to update the docs. btw I wonder why is says |
Is it meant to be |
It is Until now nobody noticed but with v2 all env variables are removed so it will start to break. Also I wonder if Nuxt/Nitro detects some providers by environment variables. If yes than this environments are not zero config anymore when using Turbo. P.S. Nuxt is great but I guess you guys are more into supporting Next.js and Vercel 😄 |
Happy to support popular frameworks! Just a simple mistake on our part. We don't claim to be perfect. |
Verify canary release
Link to code that reproduces this issue
What package manager are you using / does the bug impact?
npm
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
2.0.4-canary.4
Describe the Bug
Nitro is the server framework that Nuxt is using. It is part of every Nuxt application but is also an awesome API framework on its own that deploys everywhere (e.g. on Vercel Functions and Vercel Edge Functions).
When using Nitro separate all env variables start with
NITRO_*
. This wildcard should be added to the Framework Inference.This will also fix deployments of Nuxt that deploy to any given preset that is not
node-server
(e.g.vercel
), see #8503Expected Behavior
To Reproduce
Additional context
No response
The text was updated successfully, but these errors were encountered: