We are having problem accessing the API-key from our .env file when trying to fetch in our server.js. If we add the API-key manually to the URL in server.js it works, so the problem seems to be the connection between server.js and .env-file. We have npm installed dotenv. In the .env file we have written the key like this: WEATHER_API_KEY
Tag: dotenv
Cloudinary configuration is not read data from .env file
I’m using Cloudinary with my node.js project… The issue is cloudinary.config is not reading data from .env file, I have to type them directly! I’ll be thankful if anyone can help 🙏🏻 Answer Issue is solved with adding require(“dotenv”).config(); to the beginning of the same file which contains cloudinary.config
How to use Firebase Environment Variables in Nuxt Config
I am trying to separate Firebase Creds from my Nuxt Config file. But it is saying NuxtServerError Your API key is invalid, please check you have copied it correctly. It works fine when I use my creds directly into my nuxt config (without environment variables). I am using @nuxtjs/firebase module and this is my config: firebase ssr/universal auth documentation I