The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: use new project pgbouncer config api
phamhieu3690d02c2c5b
diff --git a/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx b/studio/components/interfaces/Settings/Database/ConnectionPooling.tsxindex 6e4a3191780..1e387cbd189 100644--- a/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx+++ b/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx@@ -141,7 +141,10 @@ export const PgbouncerConfig: FC<ConfigProps> = observer(const updateConfig = async (updatedConfig: any) => {try {- const response = await patch(`${API_URL}/props/pooling/${projectRef}/config`, updatedConfig)+ const response = await patch(+ `${API_URL}/projects/${projectRef}/config/pgbouncer`,+ updatedConfig+ )if (response.error) {throw response.error} else {diff --git a/studio/stores/app/DatabaseStore.ts b/studio/stores/app/DatabaseStore.tsindex 9204961d007..2d47b3ad468 100644--- a/studio/stores/app/DatabaseStore.ts+++ b/studio/stores/app/DatabaseStore.ts@@ -24,7 +24,7 @@ export default class DatabaseStore extends PostgresMetaInterface<any> {async getPoolingConfiguration(projectRef: string) {try {// Need to use project ref -> shouldn;t need to pass it in via argument- const url = `${API_URL}/props/pooling/${projectRef}/config`+ const url = `${API_URL}/projects/${projectRef}/config/pgbouncer`const response = await get(url, { headers: this.headers })if (response.error) throw response.errorreturn response