© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
why nuxt not exposing `NUXT_` nor `NUXT_PUBLIC_` env entries in `import.meta.env`? - Nuxt
N
Nuxt
•
2y ago
•
2 replies
Joaquín
why nuxt not exposing `NUXT_` nor `NUXT_PUBLIC_` env entries in `import.meta.env`?
When configuring custom entries via
vite.define
vite.define
or
runtimeConfig.public
runtimeConfig.public
there is no way to access them via
import.meta.env
import.meta.env
.
The only way is using
.env
.env
file
+
VITE_
VITE_
prefix
: I need some entries in a service worker
(firebase stuff for example
)
https://github.com/vite-pwa/vite-plugin-pwa/discussions/762#discussioncomment-10843259
Recent Announcements
Similar Threads
Exposing ENV Variables for nuxt.config
N
Nuxt / ❓・help
2y ago
nuxt-i18n exposing config to __NUXT__
N
Nuxt / ❓・help
2y ago
Nuxt ENV not working in docker container
N
Nuxt / ❓・help
2y ago
Testing `import.meta.client` and/or `import.meta.server`
N
Nuxt / ❓・help
17mo ago