mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
Fix a build error.
This commit is contained in:
1 parent
641d4cd379
commit
66848cc36d
1 file changed
+7
-4
@@ -6,14 +6,17 @@ import SignInWithSSO from 'components/interfaces/SignIn/SignInWithSSO'
|
||||
import { SignInLayout } from 'components/layouts'
|
||||
import { IS_PLATFORM } from 'lib/constants'
|
||||
import { useRouter } from 'next/router'
|
||||
import { useEffect } from 'react'
|
||||
import { NextPageWithLayout } from 'types'
|
||||
|
||||
const SignInPage: NextPageWithLayout = () => {
|
||||
const router = useRouter()
|
||||
if (!IS_PLATFORM) {
|
||||
// on selfhosted instance just redirect to projects page
|
||||
router.replace('/project/default')
|
||||
}
|
||||
useEffect(() => {
|
||||
if (!IS_PLATFORM) {
|
||||
// on selfhosted instance just redirect to projects page
|
||||
router.replace('/project/default')
|
||||
}
|
||||
}, [router])
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user