Skip to content

Commit

Permalink
validate env schema
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleNa1000 committed Oct 31, 2024
1 parent 20b716b commit 1effe6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ export const env = createEnv({
experimental__runtimeEnv: {
NEXT_PUBLIC_API_SERVER_URL: process.env.NEXT_PUBLIC_API_SERVER_URL,
},
skipValidation: true,
skipValidation: false,
});
13 changes: 5 additions & 8 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,21 @@
"$schema": "https://turbo.build/schema.json",
"envMode": "loose",
"globalEnv": [
"API_SERVER_URL",
"JWT_SECRET",
"DATABASE_URL",
"INTANIA_AUTH_URL",
"NEXT_PUBLIC_API_SERVER_URL",
"INTANIA_AUTH_APP_ID",
"INTANIA_AUTH_SECRET",
"INTANIA_AUTH_REDIRECT_URL",
"NEXT_PUBLIC_API_SERVER_URL",
"JWT_SECRET",
"NODE_ENV"
],
"globalDependencies": ["**/.env.*local"],
"tasks": {
"build": {
"env": [
"NEXT_PUBLIC_*",
"NEXT_PUBLIC_API_SERVER_URL",
"INTANIA_AUTH_APP_ID",
"INTANIA_AUTH_REDIRECT_URL",
"JWT_SECRET"
"JWT_SECRET",
"NODE_ENV"
],
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
Expand Down

0 comments on commit 1effe6e

Please sign in to comment.