Skip to content

Commit d70ca1d

Browse files
committed
fix callback uri
1 parent 6bea1ca commit d70ca1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/env.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const server = z.object({
1111
BETTER_AUTH_URL: z.preprocess(
1212
// This makes Vercel deployments not fail if you don't set BETTER_AUTH_URL
1313
// Since Better Auth automatically uses the VERCEL_URL if present.
14-
(str) => `https://${process.env.VERCEL_URL}` ?? str,
14+
(str) => process.env.VERCEL_URL ?? str,
1515
// VERCEL_URL doesn't include `https` so it cant be validated as a URL
16-
process.env.VERCEL ? z.string().min(1) : z.string().url(),
16+
process.env.VERCEL ? z.string().min(1) : z.url(),
1717
),
1818
DISCORD_CLIENT_ID: z.string().min(1),
1919
DISCORD_CLIENT_SECRET: z.string().min(1),

0 commit comments

Comments
 (0)