Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
fix: env validation
Browse files Browse the repository at this point in the history
  • Loading branch information
doinel1a committed May 10, 2024
1 parent 51893c1 commit fc4570b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const env = createEnv({
AUTH_SECRET: process.env.NODE_ENV === 'production' ? z.string() : z.string().optional(),
AUTH_GITHUB_ID: z.string(),
AUTH_GITHUB_SECRET: z.string(),
EDGEDB_INSTANCE: process.env.NODE_ENV === 'development' ? z.string().optional() : z.string(),
EDGEDB_SECRET_KEY: process.env.NODE_ENV === 'development' ? z.string() : z.string().optional()
EDGEDB_INSTANCE: z.string(),
EDGEDB_SECRET_KEY: process.env.NODE_ENV === 'development' ? z.string().optional() : z.string()
},
runtimeEnv: {
// Client
Expand Down

0 comments on commit fc4570b

Please sign in to comment.