Skip to content

Commit

Permalink
skip env validation
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleNa1000 committed Oct 30, 2024
1 parent 6d42a27 commit 436296e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions apps/web/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ export const env = createEnv({
client: {
NEXT_PUBLIC_API_SERVER_URL: z.string().url(),
},
runtimeEnv: {
INTANIA_AUTH_APP_ID: process.env.INTANIA_AUTH_APP_ID,
INTANIA_AUTH_REDIRECT_URL: process.env.INTANIA_AUTH_REDIRECT_URL,
JWT_SECRET: process.env.JWT_SECRET,
NEXT_PUBLIC_API_SERVER_URL: process.env.NEXT_PUBLIC_API_SERVER_URL,
NODE_ENV: process.env.NODE_ENV,
},
// For Next.js >= 13.4.4, you only need to destructure client variables:
// experimental__runtimeEnv: {
// runtimeEnv: {
// INTANIA_AUTH_APP_ID: process.env.INTANIA_AUTH_APP_ID,
// INTANIA_AUTH_REDIRECT_URL: process.env.INTANIA_AUTH_REDIRECT_URL,
// JWT_SECRET: process.env.JWT_SECRET,
// NEXT_PUBLIC_API_SERVER_URL: process.env.NEXT_PUBLIC_API_SERVER_URL,
// NODE_ENV: process.env.NODE_ENV,
// },
// For Next.js >= 13.4.4, you only need to destructure client variables:
experimental__runtimeEnv: {
NEXT_PUBLIC_API_SERVER_URL: process.env.NEXT_PUBLIC_API_SERVER_URL,
},
skipValidation: true,
});

0 comments on commit 436296e

Please sign in to comment.