KI-AGENT: Push-Server Env Datei fest laden
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import "dotenv/config";
|
||||
import { dirname, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { config } from "dotenv";
|
||||
import { z } from "zod";
|
||||
|
||||
config({
|
||||
path: resolve(dirname(fileURLToPath(import.meta.url)), "../../../../.env"),
|
||||
});
|
||||
|
||||
const envSchema = z.object({
|
||||
NODE_ENV: z.string().default("development"),
|
||||
DATABASE_URL: z.string().url(),
|
||||
|
||||
Reference in New Issue
Block a user