Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update env.ts

Daniel Hougaard0662f62b016e
diff --git a/backend/src/lib/config/env.ts b/backend/src/lib/config/env.ts
index 8c9318d8b8..11b7ecedc1 100644
--- a/backend/src/lib/config/env.ts
+++ b/backend/src/lib/config/env.ts
@@ -394,9 +394,9 @@ export const getDatabaseCredentials = (logger?: CustomLogger) => {
}
return {
- dbConnectionUri: envCfg.DB_CONNECTION_URI,
- dbRootCert: envCfg.DB_ROOT_CERT,
- readReplicas: envCfg.DB_READ_REPLICAS?.map((el) => ({
+ dbConnectionUri: parsedEnv.data.DB_CONNECTION_URI,
+ dbRootCert: parsedEnv.data.DB_ROOT_CERT,
+ readReplicas: parsedEnv.data.DB_READ_REPLICAS?.map((el) => ({
dbRootCert: el.DB_ROOT_CERT,
dbConnectionUri: el.DB_CONNECTION_URI
}))