mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
handle reference error
This commit is contained in:
1 parent
0c4e385d06
commit
aad1beefc0
1 file changed
+7
-4
@@ -604,9 +604,12 @@ function Home() {
|
||||
|
||||
// export default Home
|
||||
export default () => {
|
||||
if (typeof window !== 'undefined' && window.location.href.indexOf('localhost') === -1) {
|
||||
window.location.replace('https://supabase.io')
|
||||
} else {
|
||||
window.location.replace('/docs')
|
||||
if (typeof window !== 'undefined') {
|
||||
if (window.location.href.indexOf('localhost') === -1) {
|
||||
window.location.replace('https://supabase.io')
|
||||
} else {
|
||||
window.location.replace('/docs')
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
Reference in new issue
Block a user