-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
Description
Environment
- Operating System:
Darwin
- Node Version:
v20.10.0
- Nuxt Version:
3.10.3
- CLI Version:
3.10.1
- Nitro Version:
2.8.1
- Package Manager:
[email protected]
- Builder:
-
- User Config:
devtools
,runtimeConfig
- Runtime Modules:
-
- Build Modules:
-
Reproduction
https://stackblitz.com/edit/nuxt-starter-6r61tu
- in normal dev-mode everything works fine, the value from the .env file is printed
- if you build the app with
cloudflare-pages
preset and then run it vianpx wrangler pages dev dist/ --port=3000
, you'll see that the cli says that the variables from.dev.vars
are picked up, but they aren't used as the app prints the default value from runtime config
Describe the bug
When building the app with cloudflare-pages
preset, the env-variables for runtime config are not used in the app correctly.
Additional context
No response
Logs
✨ Compiled Worker successfully
⛅️ wrangler 3.29.0
-------------------
Using vars defined in .dev.vars
Your worker has access to the following bindings:
- Vars:
- NUXT_PUBLIC_TEST_VALUE: "(hidden)"