We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f16ab5 commit 35a27d7Copy full SHA for 35a27d7
1 file changed
src/env.ts
@@ -1,5 +1,4 @@
1
import { createEnv } from '@t3-oss/env-nextjs';
2
-import { execSync } from 'node:child_process';
3
import { z } from 'zod';
4
5
export const env = createEnv({
@@ -153,8 +152,7 @@ export const env = createEnv({
153
152
? Number(process.env.UPLOAD_MAX_FILE_SIZE_MB)
154
: 10,
155
NEXT_PUBLIC_VERSION: process.env.APP_VERSION,
156
- NEXT_PUBLIC_GIT_SHA:
157
- process.env.GIT_SHA ?? execSync('git rev-parse HEAD', { encoding: 'utf-8' }).trim(),
+ NEXT_PUBLIC_GIT_SHA: process.env.GIT_SHA,
158
},
159
/**
160
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially
0 commit comments