mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 08:09:11 +03:00
update github sign in redirect
This commit is contained in:
1 parent
3279e96ded
commit
bd13da1828
2 files changed
+5
-2
No files matched your search
Generated
-1
@@ -16,7 +16,6 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"@mdx-js/react": "^2.1.1",
|
||||
"html-to-image": "^1.10.1",
|
||||
"mini-svg-data-uri": "^1.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -7,7 +7,11 @@ const LoginWithGitHub = () => {
|
||||
const { error } = await auth.signInWithOAuth({
|
||||
provider: 'github',
|
||||
options: {
|
||||
redirectTo: `${process.env.NEXT_PUBLIC_SITE_URL}/projects?auth=true`,
|
||||
redirectTo: `${
|
||||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview'
|
||||
? process.env.NEXT_PUBLIC_VERCEL_URL
|
||||
: process.env.NEXT_PUBLIC_SITE_URL
|
||||
}/projects?auth=true`,
|
||||
},
|
||||
})
|
||||
if (error) throw error
|
||||
|
||||
Reference in new issue
Block a user