File tree 3 files changed +11
-8
lines changed
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " create-t3-app " : patch
3
+ ---
4
+
5
+ fix typo in env.mjs
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ export const env = createEnv({
28
28
// VERCEL_URL doesn't include `https` so it cant be validated as a URL
29
29
process . env . VERCEL ? z . string ( ) : z . string ( ) . url ( )
30
30
) ,
31
- // Add ` on ID and SECRET if you want to make sure they're not empty
32
31
DISCORD_CLIENT_ID : z . string ( ) ,
33
32
DISCORD_CLIENT_SECRET : z . string ( ) ,
34
33
} ,
@@ -60,8 +59,8 @@ export const env = createEnv({
60
59
*/
61
60
skipValidation : ! ! process . env . SKIP_ENV_VALIDATION ,
62
61
/**
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.
65
64
*/
66
65
emptyStringAsUndefined : true ,
67
66
} ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ export const env = createEnv({
21
21
// VERCEL_URL doesn't include `https` so it cant be validated as a URL
22
22
process . env . VERCEL ? z . string ( ) : z . string ( ) . url ( )
23
23
) ,
24
- // Add ` on ID and SECRET if you want to make sure they're not empty
25
24
DISCORD_CLIENT_ID : z . string ( ) ,
26
25
DISCORD_CLIENT_SECRET : z . string ( ) ,
27
26
} ,
@@ -48,13 +47,13 @@ export const env = createEnv({
48
47
// NEXT_PUBLIC_CLIENTVAR: process.env.NEXT_PUBLIC_CLIENTVAR,
49
48
} ,
50
49
/**
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.
53
52
*/
54
53
skipValidation : ! ! process . env . SKIP_ENV_VALIDATION ,
55
54
/**
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.
58
57
*/
59
58
emptyStringAsUndefined : true ,
60
59
} ) ;
You can’t perform that action at this time.
0 commit comments