Skip to content

Commit

Permalink
fix: fallback to VERCEL_URL if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
shadcn committed Apr 29, 2023
1 parent 4c00141 commit dbb60a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const env = createEnv({
NEXT_PUBLIC_APP_URL: z.string().min(1),
},
runtimeEnv: {
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
NEXTAUTH_URL: process.env.NEXTAUTH_URL || process.env.VERCEL_URL,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
GITHUB_CLIENT_ID: process.env.GITHUB_CLIENT_ID,
GITHUB_CLIENT_SECRET: process.env.GITHUB_CLIENT_SECRET,
Expand Down

0 comments on commit dbb60a7

Please sign in to comment.