Skip to content

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

fix: new organization api url

phamhieue6f8b954f1c6
diff --git a/studio/pages/new/index.tsx b/studio/pages/new/index.tsx
index 545dac51418..fc83795e56c 100644
--- a/studio/pages/new/index.tsx
+++ b/studio/pages/new/index.tsx
@@ -37,7 +37,7 @@ const Wizard = () => {
}
setNewOrgLoading(true)
- const response = await post(`${API_URL}/organizations/new`, {
+ const response = await post(`${API_URL}/organizations`, {
name: orgName,
})
diff --git a/studio/pages/vercel/setupOrg.tsx b/studio/pages/vercel/setupOrg.tsx
index 589a448ed32..12241c20e7d 100644
--- a/studio/pages/vercel/setupOrg.tsx
+++ b/studio/pages/vercel/setupOrg.tsx
@@ -85,7 +85,7 @@ const CreateOrganization = observer(({}) => {
async function onClick() {
setLoading(true)
- const response = await post(`${API_URL}/organizations/new`, {
+ const response = await post(`${API_URL}/organizations`, {
name: orgName,
})
if (response.error) {