From ce4c6ab9854283affb6ba000aa22e0c9ddf459a0 Mon Sep 17 00:00:00 2001 From: Timo Knuth Date: Fri, 23 Jan 2026 18:08:29 +0100 Subject: [PATCH] hardcoded --- Dockerfile | 1 - src/lib/env.ts | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5d8b712..b7b0891 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,6 @@ COPY --from=deps /app/node_modules ./node_modules COPY . . ENV NEXT_TELEMETRY_DISABLED=1 # Add build-time environment variables with defaults -ENV DATABASE_URL="postgresql://postgres:postgres@db:5432/qrmaster?schema=public" ENV NEXTAUTH_URL="https://www.qrmaster.net" ENV NEXTAUTH_SECRET="build-time-secret" ENV IP_SALT="build-time-salt" diff --git a/src/lib/env.ts b/src/lib/env.ts index 0480526..088cdf1 100644 --- a/src/lib/env.ts +++ b/src/lib/env.ts @@ -24,12 +24,4 @@ const envSchema = z.object({ // During build, we might not have all env vars, so we'll use defaults const isBuildTime = process.env.NEXT_PHASE === 'phase-production-build' || !process.env.DATABASE_URL; -export const env = isBuildTime - ? envSchema.parse({ - ...process.env, - DATABASE_URL: process.env.DATABASE_URL || 'postgresql://postgres:postgres@db:5432/qrmaster?schema=public', - NEXTAUTH_URL: process.env.NEXTAUTH_URL || 'http://localhost:3050', - NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET || 'development-secret-change-in-production', - IP_SALT: process.env.IP_SALT || 'development-salt-change-in-production', - }) - : envSchema.parse(process.env); \ No newline at end of file +export const env = envSchema.parse(process.env); \ No newline at end of file