hardcoded
This commit is contained in:
parent
c2b32b794b
commit
ce4c6ab985
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
export const env = envSchema.parse(process.env);
|
||||
Loading…
Reference in New Issue