Questions tagged [environment-variables]
Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer.
environment-variables
14,156
questions
-3
votes
1
answer
32
views
Tensorflow can't find available GPUs (win11)
I have a pretty common issue: tensorflow framework can't recognize available GPUs on my laptop.
When i try to list available GPUs in VS Code using Python (v3.11.0):
import tensorflow as tf
print("...
0
votes
0
answers
15
views
Github Actions: Array String as an input from a env variable
I am using docker/build-push-action@v5 and need to pass build-contexts from variable. Its type is List of strings: https://github.com/docker/build-push-action?tab=readme-ov-file#inputs
If I specify ...
0
votes
0
answers
11
views
Where to store a frontend-environment variable in Jhipster (Stripe publishable key)
Stripe accounts come with test and prod, publishable and secret keys.
The application is generated by Jhipster.
Regarding the publishable keys, I want to pass them as environment variables to use ...
0
votes
0
answers
17
views
Vonage voice API - getting error using python
I am trying to simulate the voice call using vonage voice api.
I am trying to do that my using python.
I created an .env file and updated the values of app id and private key value and not path (not ...
0
votes
0
answers
31
views
Environment Variables Not Loading Correctly in VSCode Terminal for Next.js Project
I work in VSCode on a Mac. Somehow, I found that my Next.js .env file isn't being loaded correctly. To debug this, I added some log statements in next.config.js to check if the environment variables ...
0
votes
0
answers
16
views
Docker Composer change Image .env variable not working
I have ReactJs app with .env file like this:
REACT_APP_SERVER_URL="URL1"
Then I using Dockerfile to build to Image:
# Fetching the latest node image on apline linux
FROM node:22 AS builder
# ...
-1
votes
0
answers
13
views
Shell Script not able to access SSH_AUTH_SOCK environment variable
I am trying to build a docker image through a script, this script or any other script which I have tested with is not able to access SSH_AUTH_SOCK variable, when i echo in terminal it works, but when ...
0
votes
1
answer
28
views
NextJS env variables causing errors when "git push"
I am using Next JS 14.2.5 and just testing out environmental variables. I made a .env.local file with
HI=poop
and in another file,
export const hi = () => {
console.log(process.env.HI);
return ...
0
votes
0
answers
14
views
NODE_ENV Not Set Correctly in React Native Project on macOS
I am working on a React Native project on macOS, and I am facing an issue where the NODE_ENV environment variable is not being set correctly. Despite trying various methods to set this variable, it ...
0
votes
0
answers
15
views
Flutter: set up Dev Prod Test Environment with envied Package
package url: https://pub.dev/packages/envied
I have set up my variable like API Key and base url in .env file to secure. It works perfectly fine.
I want to differentiate between DEV,TEST,PROD ...
-3
votes
2
answers
52
views
.env type issue in Typescript , Nodejs server
I am trying to use my environment variables in my nodejs server written in typescript. I am requiring type string but .env variables are of type string|undefined. Is there any way to fix type of .env ...
1
vote
1
answer
51
views
why is the "Uncaught ReferenceError: process is not defined" problem so hard to diagnose in my nextjs app?
I am using Nextjs, and want to call process.env from within a page. I overrode the default Document with _document.js and wrote this:
export default function Document() {
return (
<Html>
&...
-1
votes
0
answers
18
views
How to fix this ERROR: Could not load REFPROP (REFPRP64.dll) due to: 126?
Error
I tried to solve this problem by changing the environment variable. But it is not working. already, All libraries are installed and REFROP is installed in C:\Program Files (x86)\REFPROP.
...
0
votes
0
answers
37
views
How to set environment variables when deploying without using EAS on EXPO
I'm implementing the project after the expo prebuild.
I'm take three environments: development, staging, and production. because 'dev' is the environment that developers will use to do development, ...
0
votes
2
answers
54
views
Extracting env variables in go
I am trying to create a dummy project in Go (I am new to this), and I am using a .env file to store my environment variables. This is my project structure:
Here's what my main.go code looks like:
...