Questions tagged [.env]
The .env tag has no usage guidance.
.env
204
questions
1
vote
1
answer
31
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 ...
0
votes
2
answers
45
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 ...
0
votes
1
answer
58
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/
- ...
0
votes
0
answers
31
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 ...
0
votes
0
answers
29
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 ...
2
votes
2
answers
54
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 ...
1
vote
1
answer
89
views
vuejs3 and vite import.meta.env.VITE_BASE_URL not working
Hello I'm trying to get base url from .env file. And I'm getting undefined.
I have tried some stack overflow answers and documentation but it didn't help.
console.log('env', import.meta.env....
1
vote
1
answer
64
views
PHP is not reading .env file
I am using PHP with PDO to connect to my database.
I want to start using environment variables, so I used the following terminal command:
composer require vlucas/phpdotenv
My .env file now contains ...
1
vote
1
answer
27
views
env file not included in dist folder when building nwjs app using nw-builder-phoenix
I am using NW.js to create desktop app. In am using nwjs-builder-phoenix to build an executable file, I am experiencing an issue where the .env file is not being included in the OS-specific folders ...
-1
votes
1
answer
32
views
accessing .env file unseccessfully in node.js
I was working on a discord chatbot for some practice and try to access some environment variable in .env file. However , some how I was not able to access those variables with some following code:
...
1
vote
1
answer
58
views
Node.js can't read .env
package.json:
"scripts": {
"dev": "node --env-file=.env && tsx watch src/server.ts",
The server.ts is the entry point of the app, and it works if I remove ...
0
votes
3
answers
85
views
php .env with Docker
To add phpdotenv, I am supposed to run the following terminal command:
composer require vlucas/phpdotenv
But I'm not exactly sure which folder I should be running the command.
My folder structure ...
0
votes
0
answers
40
views
How to connect .env file for API
I've been trying to add .env file for my API project (API in Flask; python with mongoDB database) and I'm not really sure how to do it - CI/CD keeps failing because of this file being missing.
...
1
vote
0
answers
31
views
Token from .env is undefined when fetching data NUXT 3
I'm trying to fetch data from api, as always i need to secure my token that backend given. Using useRuntimeConfig that documentation of Nuxt given. But This always getting undefined value of token.
&...
0
votes
0
answers
30
views
Required Variable in .env file to connect to remote postgres sql database
Working with an application that runs on docker that has migrated from mongo to postgres for database. Looking for what variable or what i need to add into the docker .env file to point to a remote ...