I want to pass some arguments to nuxt command line like:
nuxt --myvar a
How to read this myvar inside nuxt.config.js?
I need this because I have 3 .env (localhost, production and development) files, but with current NODE_ENV I can use only 2 (production and development).
You should check out the https://github.com/nuxt-community/dotenv-module.
The module loads variables from your .env file directly into your nuxt.js application
contextandprocess.env.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With