Skip to content

Commit c387187

Browse files
fix: comments in env schema (#889)
* Update typo in auth-schema.mjs Simple fix. Won't break anything * fixes Co-authored-by: Gabriel Pedroza <[email protected]>
1 parent 4da127d commit c387187

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.changeset/smooth-moons-chew.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-schema comments

cli/template/addons/env/auth-prisma-schema.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export const serverSchema = z.object({
1414
: z.string().min(1).optional(),
1515
NEXTAUTH_URL: z.preprocess(
1616
// This makes Vercel deployments not fail if you don't set NEXTAUTH_URL
17-
// Since NextAuth automatically uses the VERCEL_URL if present.
17+
// Since NextAuth.js automatically uses the VERCEL_URL if present.
1818
(str) => process.env.VERCEL_URL ?? str,
19-
// VERCEL_URL doesnt include `https` so it cant be validated as a URL
19+
// VERCEL_URL doesn't include `https` so it cant be validated as a URL
2020
process.env.VERCEL ? z.string() : z.string().url(),
2121
),
2222
DISCORD_CLIENT_ID: z.string(),

cli/template/addons/env/auth-schema.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export const serverSchema = z.object({
1313
: z.string().min(1).optional(),
1414
NEXTAUTH_URL: z.preprocess(
1515
// This makes Vercel deployments not fail if you don't set NEXTAUTH_URL
16-
// Since NextAuth automatically uses the VERCEL_URL if present.
16+
// Since NextAuth.js automatically uses the VERCEL_URL if present.
1717
(str) => process.env.VERCEL_URL ?? str,
18-
// VERCEL_URL doesnt include `https` so it cant be validated as a URL
18+
// VERCEL_URL doesn't include `https` so it cant be validated as a URL
1919
process.env.VERCEL ? z.string() : z.string().url(),
2020
),
2121
DISCORD_CLIENT_ID: z.string(),

0 commit comments

Comments
 (0)