Skip to content

Commit

Permalink
fix: make node env optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Rei-x committed Feb 20, 2023
1 parent 5b6228b commit d7acbc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { z } from "zod";

const server = z.object({
DATABASE_URL: z.string().url(),
NODE_ENV: z.enum(["development", "test", "production"]),
NODE_ENV: z.enum(["development", "test", "production"]).optional(),
NEXTAUTH_SECRET:
process.env.NODE_ENV === "production"
? z.string().min(1)
Expand Down

0 comments on commit d7acbc9

Please sign in to comment.