Skip to content

Commit

Permalink
fix: set env var in packagejson instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Feb 21, 2024
1 parent 83764df commit 7f98fc9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions bin/render-build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
set -euxo pipefail

CI=true

npm i -g [email protected]
pnpm install
pnpm p:build
Expand Down
2 changes: 1 addition & 1 deletion core/lib/env/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ export const env = createEnv({
NEXT_PUBLIC_SUPABASE_PUBLIC_KEY: process.env.NEXT_PUBLIC_SUPABASE_PUBLIC_KEY,
NEXT_PUBLIC_SUPABASE_URL: process.env.NEXT_PUBLIC_SUPABASE_URL,
},
skipValidation: Boolean(process.env.CI),
skipValidation: Boolean(process.env.SKIP_VALIDATION),
emptyStringAsUndefined: true,
});
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev -p 3000",
"build": "next build",
"build": "SKIP_VALIDATION=true next build",
"invite-users": "dotenv -e .env.local ts-node scripts/invite.ts",
"lint": "next lint",
"migrate-dev": "dotenv -e .env.local prisma migrate dev",
Expand Down
2 changes: 1 addition & 1 deletion integrations/evaluations/lib/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export const env = createEnv({
NODE_ENV: process.env.NODE_ENV,
},
emptyStringAsUndefined: true,
skipValidation: Boolean(process.env.CI),
skipValidation: Boolean(process.env.SKIP_VALIDATION),
client: {},
});
2 changes: 1 addition & 1 deletion integrations/evaluations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev -p 3001",
"build": "next build",
"build": "SKIP_VALIDATION=true next build",
"start": "next start",
"lint": "next lint"
},
Expand Down
2 changes: 1 addition & 1 deletion integrations/submissions/lib/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export const env = createEnv({
NODE_ENV: process.env.NODE_ENV,
},
emptyStringAsUndefined: true,
skipValidation: Boolean(process.env.CI),
skipValidation: Boolean(process.env.SKIP_VALIDATION),
client: {},
});
2 changes: 1 addition & 1 deletion integrations/submissions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev -p 3002",
"build": "next build",
"build": "SKIP_VALIDATION=true next build",
"start": "next start",
"lint": "next lint"
},
Expand Down

0 comments on commit 7f98fc9

Please sign in to comment.