Skip to content

Commit d7c9f67

Browse files
fix: typo in env.mjs (t3-oss#1690)
Co-authored-by: juliusmarminge <[email protected]>
1 parent 2b22c59 commit d7c9f67

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.changeset/thick-comics-punch.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-t3-app": patch
3+
---
4+
5+
fix typo in env.mjs

cli/template/extras/src/env/with-auth-db.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export const env = createEnv({
2828
// VERCEL_URL doesn't include `https` so it cant be validated as a URL
2929
process.env.VERCEL ? z.string() : z.string().url()
3030
),
31-
// Add ` on ID and SECRET if you want to make sure they're not empty
3231
DISCORD_CLIENT_ID: z.string(),
3332
DISCORD_CLIENT_SECRET: z.string(),
3433
},
@@ -60,8 +59,8 @@ export const env = createEnv({
6059
*/
6160
skipValidation: !!process.env.SKIP_ENV_VALIDATION,
6261
/**
63-
* Makes it so that empty strings are treated as undefined.
64-
* `SOME_VAR: z.string()` and `SOME_VAR=''` will throw an error.
62+
* Makes it so that empty strings are treated as undefined. `SOME_VAR: z.string()` and
63+
* `SOME_VAR=''` will throw an error.
6564
*/
6665
emptyStringAsUndefined: true,
6766
});

cli/template/extras/src/env/with-auth.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const env = createEnv({
2121
// VERCEL_URL doesn't include `https` so it cant be validated as a URL
2222
process.env.VERCEL ? z.string() : z.string().url()
2323
),
24-
// Add ` on ID and SECRET if you want to make sure they're not empty
2524
DISCORD_CLIENT_ID: z.string(),
2625
DISCORD_CLIENT_SECRET: z.string(),
2726
},
@@ -48,13 +47,13 @@ export const env = createEnv({
4847
// NEXT_PUBLIC_CLIENTVAR: process.env.NEXT_PUBLIC_CLIENTVAR,
4948
},
5049
/**
51-
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation.
52-
* This is especially useful for Docker builds.
50+
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially
51+
* useful for Docker builds.
5352
*/
5453
skipValidation: !!process.env.SKIP_ENV_VALIDATION,
5554
/**
56-
* Makes it so that empty strings are treated as undefined.
57-
* `SOME_VAR: z.string()` and `SOME_VAR=''` will throw an error.
55+
* Makes it so that empty strings are treated as undefined. `SOME_VAR: z.string()` and
56+
* `SOME_VAR=''` will throw an error.
5857
*/
5958
emptyStringAsUndefined: true,
6059
});

0 commit comments

Comments
 (0)