Skip to content

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

Enforce refresh upon creating a new org

Joshen Lim018c48897e78
diff --git a/studio/pages/new/index.tsx b/studio/pages/new/index.tsx
index d9fdb6526a4..e095e1b1648 100644
--- a/studio/pages/new/index.tsx
+++ b/studio/pages/new/index.tsx
@@ -49,7 +49,11 @@ const Wizard = () => {
} else {
const org = response
app.onOrgAdded(org)
- Router.push('/new/[slug]', `/new/${org.slug}`)
+
+ // Router.push('/new/[slug]', `/new/${org.slug}`)
+ // Using window.location.href for now as organization metadata needs to refresh
+ // We do not get is_owner nor stripe_customer_id from the response here
+ window.location.href = `/new/${org.slug}`
}
}