-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/contact.html #59
Comments
Your article was really helpful just need one more help I am using Nuxt3 and want to create multiple environment file I install dotenv package and created .env.development and set but now it says ERROR Cannot start nuxt: Unable to obtain an available random port number! can you help I tried setting environment file from package.json nothing work nor found any article on it. .env files are in gitignore file that is we didn't add it in repo |
Hey @prashantnirgun, you'll probably want to use Nuxt's runtimeConfig. Check out https://nuxtjs.org/tutorials/moving-from-nuxtjs-dotenv-to-runtime-config/. |
Thanks for your reply I already go through this article. It shows you to create env variables or default value to variables. My Issue is I possibly have 3 values for development, staging and production. I can't even hard code that value in nuxt.config.ts. That is missing I tried dotenv @nuxt/dotenv they are for the same purpose but unfortunately they are not compatible for nuxt3 latest release. |
Cody Bontecou | Cody Bontecou
A VitePress site
https://codybontecou.com/contact.html
The text was updated successfully, but these errors were encountered: