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

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
-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("...
Vladimir Hartoniuk's user avatar
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 ...
Andrius's user avatar
  • 20.8k
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 ...
julienKW's user avatar
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 ...
Kevin Liu's user avatar
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 # ...
famfamfam's user avatar
  • 518
-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 ...
arpit pundir's user avatar
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 ...
da coconut's user avatar
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 ...
Daniel Śledź's user avatar
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 ...
neha patel's user avatar
-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 ...
Krishna Biswal's user avatar
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> &...
calyxofheld's user avatar
  • 2,018
-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. ...
Pasi's user avatar
  • 1
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, ...
reemee's user avatar
  • 1
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: ...
Ashish Tripathi's user avatar

15 30 50 per page
1
2 3 4 5
944