Skip to content

Commit d3bd786

Browse files
committed
fix(env): skip validation with github actions
Signed-off-by: Seren_Modz 21 <seren@kings-world.net>
1 parent beea8c9 commit d3bd786

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
NODE_ENV: production
1111
NEXT_TELEMETRY_DISABLED: 1
12+
CI: true
1213

1314
jobs:
1415
typecheck:

src/lib/env.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { createEnv } from "@t3-oss/env-nextjs";
22
import { z } from "zod";
33

44
export const env = createEnv({
5+
// we don't really need to validate env vars in github actions right now
6+
// im not using client env vars, so there is nothing to bundle
7+
skipValidation: process.env.CI === "true",
8+
59
/*
610
* Server-side Environment variables, not available on the client.
711
* Will throw if you access these variables on the client.

0 commit comments

Comments
 (0)