Skip to content

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

force redirect www home in prod

Inian Parameshwaran0c4e385d0635
diff --git a/web/src/pages/index.js b/web/src/pages/index.js
index 9b4de771b62..4c8cf8a9551 100755
--- a/web/src/pages/index.js
+++ b/web/src/pages/index.js
@@ -602,4 +602,11 @@ function Home() {
)
}
-export default 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')
+ }
+}