Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [.env]

The tag has no usage guidance.

-1 votes
1 answer
50 views

Issue with Environment Variable in React - Getting undefined in URL

.env REACT_APP_BASE_URL=https://mysite.azurewebsites.net/ .js const baseUrl = process.env.REACT_APP_BASE_URL; const url = `${baseUrl}WP/SiteLoginAPI/`; console.log('Constructed URL:', url); Problem ...
Mudasir Habib's user avatar
0 votes
2 answers
30 views

Error: P1000: Authentication failed against database server at `localhost`, the provided database credentials for `postgres` are not valid

api git:(main) ✗ pnpm prisma migrate dev Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma Datasource "db": PostgreSQL database "postgres", ...
Jaskaran Singh's user avatar
0 votes
1 answer
12 views

Not able to load .env variables from the root directory into the react project built using Vite

So, the problem I am facing is that I have front-end code in the frontend folder and .env file in the root folder. When I try to import the env variables into the folder from the root directory it ...
Gurneesh Budhiraja's user avatar
1 vote
1 answer
34 views

SpringBoot won't read mail properties from .env.properties file

I'm using a .env.properties file for sensitive data such as Database and Mail credentials. The database credentials are being picked up by Spring properly, but the mail credentials are not. Here is an ...
Jez's user avatar
  • 55
0 votes
2 answers
49 views

Accesing .env in Node.js / Express.js

import validator from 'validator'; import { Users } from '../../models/auth.js'; import { jwtSignPromise } from '../../utils/jasonWebToken.js'; import dotenv from 'dotenv'; dotenv.config(); const ...
SerchoD's user avatar
0 votes
1 answer
61 views

How to include .env file in my python package using pyproject.toml?

I have the following folder structure: program_root/ - src/ - tests/ - data/ - templates/ - docs/ - build/ - dist/ - ...
Devarapalli Vamsi's user avatar
0 votes
0 answers
33 views

How to load env vars from .env before running C# tests through VS Code

I am trying to get rid of the .runsettings file which I have in my project repo and keep all my config variables in a single .env file. The one place where I am stuck in is in the scenario when ...
tech-ebe's user avatar
0 votes
0 answers
36 views

Trouble encrypting .env.production file using dotenvx in node project as .env.vault file format is deprecated

I'm using dotenvx CLI with NPM and NodeJS for injecting environment variables but when I try to encrypt my production file following the steps from their documentation it either throws an error or ...
slavic max's user avatar
2 votes
2 answers
58 views

How to handle .env.local in a next js typescript file?

import GithubProvider from "next-auth/providers/github" import GoogleProvider from "next-auth/providers/google" const GITHUB_ID: string = process.env.GITHUB_ID as string; const ...
Urten's user avatar
  • 23