Skip to content

Commit

Permalink
fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
kamui-fin committed Nov 10, 2023
1 parent c2b0b2a commit f6f2d4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/env/schema.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const serverSchema = z.object({
DIRECT_DATABASE_URL: z.string().url(),
PLATFORM_DATABASE_URL: z.string().url(),
NODE_ENV: z.enum(['development', 'test', 'production']),
VERCEL_ENV: z.enum(['development', 'preview', 'production']),
NEXTAUTH_SECRET:
process.env.NODE_ENV === 'production' ? z.string().min(1) : z.string().min(1).optional(),
NEXTAUTH_URL: z.preprocess(
Expand Down

0 comments on commit f6f2d4b

Please sign in to comment.