python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
mongoose.connect error : The `uri` parameter to `openUri()` must be a string, got "object"
I'm trying to connect my MERN stack application to MongoDB by using mongoose but I'm getting this error even if I am using dotenv file or directly.
I've search for many solutions but didn't work for m...
Soniya Jaiswal
Votes: 0
Answers: 2
How can I create a .env file in Ubuntu?
I have an app deployed on an AWS EC2 Ubuntu instance. I use dotenv for development, but manually input my environment variables in production to avoid exposing them on GitHub.
My goal is to create a ...
Xr7TSi
Votes: 0
Answers: 1
nextJS how to load an environment variable properly
I am used to React and recently moved to NextJs, but facing a weird scenario.
Having this Demo component rendered in a demo page;
import React from 'react';
import { Hello, Header } from './demo.styl...

gxmad
Votes: 0
Answers: 1
environnement variable not loading using javascript, node and express
I want to store variables in my .env file and use them instead of using my sensitive data in the code.
require("dotenv").config();
const express = require("express");
//call expres...

Redhewlett
Votes: 0
Answers: 2