Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
why nuxt not exposing `NUXT_` nor `NUXT_PUBLIC_` env entries in `import.meta.env`? - Nuxt
N
Nuxt
•
17mo 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
Nuxt
Join
Nuxt Community Chat Server
31,817
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Exposing ENV Variables for nuxt.config
N
Nuxt / ❓・help
2y ago
nuxt-i18n exposing config to __NUXT__
N
Nuxt / ❓・help
16mo 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
15mo ago