Skip to content

Commit 1e41c6d

Browse files
Require NODE_ENV to be set
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
1 parent f4d9f6d commit 1e41c6d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/utils/env.server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ const nonEmptyString = z.string().trim().min(1)
44

55
const schemaBase = z.object({
66
NODE_ENV: z
7-
.enum(['production', 'development', 'test'] as const)
8-
.optional()
9-
.default('development'),
7+
.enum(['production', 'development', 'test'] as const),
108
PORT: nonEmptyString,
119
MOCKS: z.enum(['true', 'false']).optional(),
1210
PLAYWRIGHT_TEST_BASE_URL: z.string().trim().optional(),

0 commit comments

Comments
 (0)