-
Notifications
You must be signed in to change notification settings - Fork 472
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
Cloudflare: Environment variables starting with NITRO_
are not passed to runtimeConfig
#2468
Labels
Comments
Do you call |
I do not. It works with the example above so in nuxt/nitro config the process env is there? |
See also https://github.com/Atinux/nuxt-env-repro which gives this output (called from inside an event handler): {
"runtimeConfig().hello": "",
"runtimeConfig(event).hello": "world",
"process.env.NUXT_HELLO": "world"
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
nitropack: 2.9.6
Reproduction
Describe the bug
Environment variables dont seem to work on Cloudflare:
This works locally with .env:
But deployed to Cloudflare with the environment set in Cloudflare Dashboard it stays empty. Using the following workaround it works:
But what would then the purpose of defining
NITRO_
env vars in the first place when they are not auto "injected"?Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: