14,487 questions
0
votes
3
answers
171
views
+50
How to inject values from a .env file into Angular environment.ts files during development and prod builds?
I have an Angular 18 app and need to inject environment variable values from a .env file into my environment.ts file and environment.development.ts. I want the values available during development (ng ...
0
votes
5
answers
125
views
My environment variable is not loading in Prisma
Failed to load config file "F:\\Documents\\Desktop\\coding projects\\Shopify\\my-turborepo\\packages\\product-db" as a TypeScript/JavaScript module. Error: PrismaConfigEnvError: Missing ...
3
votes
1
answer
179
views
What order should programs look at JAVA_HOME, JRE_HOME, JDK_HOME for locating a Java version?
What order should programs look at JAVA_HOME, JRE_HOME, JDK_HOME for locating a version of Java to execute Java programs?
I want my program to find Java automatically using an environment variable, ...
2
votes
1
answer
53
views
PhpUnit overwrite server variables from XML
I have following server variable in phpunit.xml:
<php>
<server name="APP_DEBUG" value="false"/>
</php>
Sometimes while developing, I want have APP_DEBUG ...
0
votes
0
answers
28
views
How to make environment variables of running a script via Ctrl+Shift+F10 in PyCharm the same with environment variables in an independent terminal?
I got a simple script on my server
import os
import pprint
pprint.pprint(dict(os.environ))
When I connect to my server and run it manually,I got different results with when I run it throw Ctrl+Shift+...
2
votes
1
answer
60
views
How to set ASP.NET configuration keys with dots using environment variables on Linux
In .NET you sometimes need configuration keys with dots. For example in logging configuration. .NET itself creates a sample like this (Microsoft.AspNetCore):
"Logging": {
"LogLevel&...
0
votes
0
answers
65
views
Problem to run my Qt WebAssembly App via CLion
I am experimenting with Qt for WebAssembly and wrote a small application.
When I build and run it from the console or directly inside Qt Creator, everything works fine.
Now I’d like to use CLion as my ...
0
votes
1
answer
68
views
Where do I point JAVA_HOME for NativeScript to work correctly?
I'm trying to get started with NativeScript, but I'm getting these errors from ns doctor
✖ Error executing command 'javac'. Make sure you have installed The Java Development Kit (JDK) and set ...
0
votes
0
answers
66
views
How to load environment variables in Next.js 14 (App Router) with server and client components?
I am using Nextjs 14 with the app router and I have some environment variables in my .env.local file:
NEXT_PUBLIC_API_URL=https://myapi.com
SECRET_KEY=mySecret
Inside my app, I need to access them:
//...
2
votes
1
answer
145
views
Python: How to add variable in run statement?
My vs code looks like this:
import requests
import json
import os
os.environ = "website.abc.com"
header={"Accept":application/json", "Authorization": f"Bearer {...
0
votes
2
answers
196
views
Azure Function - Python Runtime - Flex Consumption - unable to get env var
I thought it would be pretty simple, but I seems as if I am missing something
import os
app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)
#for testing only
@app.route(route="...
0
votes
1
answer
202
views
Prisma + Neon + better-auth: Failed to create user Error [PrismaClientValidationError]
The error after clicking signup button (the minified code is so long so I left out unimportant part)
2025-07-31T13:14:19.733Z ERROR [Better Auth]: Failed to create user Error [...
3
votes
1
answer
66
views
Why is appending to User Environment Variable PATH without duplicating is not working for the last path in Windows 11 command line?
I looked through a few solutions here and found an almost working script to append to the user Environment Variable PATH without overwriting the existing path and not clutter it with system's EV's ...
0
votes
1
answer
58
views
Can tcsh users reliably use conda packages with .sh activate/deactivate hooks but no .csh alternative?
My site has a huge amount of infrastructure for configuring project environments using tcsh. I'm trying to add conda environments for managing packages.
In particular I'm using Miniforge-25.5.1 and ...
0
votes
1
answer
169
views
What is the recommended way to append a path to Windows' `PATH` environment variable via Rust?
I'm writing a crude little installer in Rust for a program I've been working on, and it mostly works; however, I've been having some issues with getting the Windows build to modify the system's PATH ...
0
votes
1
answer
83
views
How to persist PATH for Azure DevOps agent in VMSS using systemd or image-based methods?
I'm running an Azure DevOps pipeline using agents deployed via a VMSS (Virtual Machine Scale Set) based on a custom Packer image. This image includes Polyspace tools (like Code Prover and Bug Finder), ...
0
votes
0
answers
184
views
Azure Container Apps: Environment Variable Not Populated from Secret Reference Despite Correct Secret and Deployment
I'm deploying a .NET 9 API to Azure Container Apps using GitHub Actions. I want to inject a database connection string as an environment variable using a secret reference. My GitHub workflow sets the ...
2
votes
4
answers
480
views
NestJS TypeORM Environment Variables Not Loading Despite dotenv Configuration
I'm working on a NestJS application with TypeORM and PostgreSQL. My environment variables are not being loaded when the application starts, even though I can see dotenv injecting them in the console ...
2
votes
1
answer
82
views
How to import env variables from Linux shell in Spring Boot tests?
In my Spring Boot project with IntelliJ IDEA Community, I'm creating integration tests with JUnit and Mockito, I want to set env variables globally because tests are many execution points, and in ...
0
votes
0
answers
58
views
cordova android on Windows "No usable Android build tools found"
My main dev computer needs to be rebuilt, so before I did that I installed my entire cordova environment on another system, once I rebuild the dev computer then I will be upgrading everything. But on ...
1
vote
1
answer
53
views
Setting location of Julia logs to NOT be in $JULIA_DEPOT_PATHS/logs
On a multi-user Linux platform, you want to install a Julia environment once while it is being used by many users (possibly at the same time). One can create a central installation of a Julia ...
0
votes
0
answers
243
views
How to load secrets from a Secret Manager into Laravel before the application boots and keep them synced across load-balanced instances?
I'm working on a Laravel application hosted behind a load balancer with multiple instances. Instead of relying solely on the .env file, I'm pulling sensitive configuration values (API keys, DB ...
-1
votes
1
answer
96
views
want to assign different environments to angular project on different web apps via CI/CD pipeline
I have a .NET and Angular application (both in a single solution) deployed across two different Azure Web App Services. I need to assign development (dev) and production (prod) environments properly.
...
1
vote
2
answers
226
views
How to make EXPO_PUBLIC_API_URL (currently in .env file) configurable post-build in Expo v52 preview APK for local testing?
I have built an Android application using Expo v52 with React Native and now I want to generate a preview APK. In my project, I use an environment variable like: EXPO_PUBLIC_API_URL=http://192.168.57....
0
votes
1
answer
51
views
How do I use Parameterized configuration with Firebase Functions onSchedule?
I am trying to use environment variables with onSchedule. But it only accepts a string, not an Expression<string> or similar. Although value() makes it compile, it will not actually deploy.
...