Skip to content

Commit

Permalink
add redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Zuniga Cuellar committed Oct 5, 2023
1 parent b4fcf8a commit 54ea75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/auth/signin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const POST: APIRoute = async ({ request, cookies, redirect }) => {
const { data, error } = await supabase.auth.signInWithOAuth({
provider: provider as Provider,
options: {
redirectTo: "http://localhost:4321/api/auth/github",
redirectTo: import.meta.env.DEV ? "http://localhost:4321/api/auth/github" : "https://astro-supabase-eight.vercel.app/api/auth/github",
},
});

Expand Down

0 comments on commit 54ea75e

Please sign in to comment.