Skip to content

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

fix: no need page reload on project building/restoring completes

phamhieu5f10351dae98
diff --git a/studio/pages/project/[ref]/building.tsx b/studio/pages/project/[ref]/building.tsx
index 3215ec8e6a3..87f7a729b3b 100644
--- a/studio/pages/project/[ref]/building.tsx
+++ b/studio/pages/project/[ref]/building.tsx
@@ -20,7 +20,12 @@ const RedirectToDashboard: FC = () => {
// Use redirect to reload store data properly after project has been
// been created or unpaused, this is necessarily especially for unpausing
// so that the dashboard fetches the updated connection strings
- window.location.replace(`/project/${ref}`)
+ // window.location.replace(`/project/${ref}`)
+
+ // TODO: for experiment only
+ // Cos we already pulling new connectionString after project building/restoring
+ // just use normal router.push is enough
+ router.push(`/project/${ref}`)
}, [])
return null
}