Skip to content

Commit 9bc1ea5

Browse files
committed
fix: build time env validation
1 parent d85b86b commit 9bc1ea5

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
test:
1111
name: Test and Lint
1212
runs-on: ubuntu-latest
13-
13+
env:
14+
SKIP_ENV_VALIDATION: "true"
1415
steps:
1516
- name: Checkout code
1617
uses: actions/checkout@v4

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ COPY . .
2222
# Learn more here: https://nextjs.org/telemetry
2323
# Uncomment the following line in case you want to disable telemetry during the build.
2424
ENV NEXT_TELEMETRY_DISABLED=1
25+
ENV SKIP_ENV_VALIDATION=1
2526

2627
RUN pnpm build
2728

src/env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ export const env = createEnv({
4242
* explicitly specify this option as true.
4343
*/
4444
emptyStringAsUndefined: true,
45+
skipValidation: !!process.env.SKIP_ENV_VALIDATION,
4546
})

0 commit comments

Comments
 (0)