Skip to content

Commit

Permalink
add vercel public url
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Zuniga Cuellar committed Oct 7, 2023
1 parent 94893a7 commit 86781e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/api/auth/signin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const POST: APIRoute = async ({ request, cookies, redirect }) => {
options: {
redirectTo: import.meta.env.DEV
? "http://localhost:4321/api/auth/github"
: "https://astro-supabase-eight.vercel.app/api/auth/github",
: // Change this to your production URL
`https://${import.meta.env.PUBLIC_VERCEL_URL}/api/auth/github`,
},
});

Expand Down

0 comments on commit 86781e3

Please sign in to comment.