Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

handle reference error

Inian Parameshwaranaad1beefc089
diff --git a/web/src/pages/index.js b/web/src/pages/index.js
index 4c8cf8a9551..e826c5f5ac7 100755
--- a/web/src/pages/index.js
+++ b/web/src/pages/index.js
@@ -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
}