14,482 questions
0
votes
3
answers
241
views
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 ...
1
vote
1
answer
168
views
Prisma CLI Error: "Missing required environment variable: DATABASE_URL" in NestJS Project (Even Though .env Is Set) [closed]
I'm trying to use Prisma in my NestJS project. Prisma initializes correctly, but whenever I run any Prisma CLI command (e.g., npx prisma, npx prisma migrate dev, etc.), I get this error:
Failed to ...
0
votes
4
answers
160
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 ...
6
votes
5
answers
5k
views
Error: "PrismaConfigEnvError: Missing required environment variable: DATABASE_URL"
I’m working on a Next.js + TypeScript project with a MySQL database using Prisma.
I set up my configuration in prisma.config.ts like this:
import { defineConfig, env } from "prisma/config";
...
3
votes
1
answer
180
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, ...
0
votes
0
answers
29
views
how to add custom environment variables to use in build.gradle in Androidd Studio
I have build.gradle setup with signingConfigs as below:
SystemConfig90 {
storeFile file(System.getenv("KEYSTORE_PATH_90"))
//storeFile file('/Users/bhaskarrajaryal/...
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 ...
1
vote
1
answer
53
views
Persistent Pybliometrics FileNotFoundError on Windows despite configuration attempts (.ini, Environment Variable)
I'm trying to configure the pybliometrics library on Windows for my thesis, but I'm running into a highly persistent configuration error that I cannot resolve. I have a clean installation of Python 3....
0
votes
0
answers
29
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+...
0
votes
0
answers
81
views
Why bash's export directive doesn't work with eval directive? [duplicate]
I can't figure out why this code outputs VAR= when it should output VAR=val.
Any ideas?
#!/usr/bin/env bash
arr=(
"export VAR=val"
"echo VAR=$VAR"
)
for it in "${arr[...
2
votes
1
answer
62
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
73
views
How to load environment variables in PythonAnywhere?
I have just finished working on a Flask web application that is using openai SDK.
Locally everything works smoothly, but after uploading the project on PythonAnywhere, the environment variables from ....
0
votes
0
answers
66
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
0
answers
75
views
React RSBuild with Nginx proxy returns undefined in API URL after production build
I’m facing an issue with my React frontend (built with rsbuild) and my Node.js REST API.
Setup
Frontend: React (rsbuild)
Backend: Node.js REST API (pm2)
Server: Windows Server
Proxy: Nginx (serves ...
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 ...