Env variables in every file #9200
Unanswered
blaadje
asked this question in
Questions (Nuxt 2)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I want to have some custom JS files used across the app & be able to retrieve
process.env.MY_VARIABLE
, is that possible ?I'm using client-side only for my app & by using
dotenv / publicRuntimeConfig
it is not possible.I thought about things to make it work such as
.index.js
files which would start nuxt ?Obv theses ideas might not be relevant, any idea ? (I'd really like to achieve that)
Beta Was this translation helpful? Give feedback.
All reactions