Skip to content

Commit

Permalink
fix: check if vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
shadcn committed Apr 29, 2023
1 parent 8a23145 commit 54147ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export const env = createEnv({
NEXT_PUBLIC_APP_URL: z.string().min(1),
},
runtimeEnv: {
NEXTAUTH_URL: process.env.VERCEL_URL ?? process.env.NEXTAUTH_URL,
NEXTAUTH_URL: process.env.VERCEL
? process.env.VERCEL_URL
: process.env.NEXTAUTH_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 54147ad

Please sign in to comment.