The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: migrate to fly pg-meta apis
phamhieu76cadf11c89c
diff --git a/studio/stores/pgmeta/MetaStore.ts b/studio/stores/pgmeta/MetaStore.tsindex 2767ceab3c7..e839ade9ef1 100644--- a/studio/stores/pgmeta/MetaStore.ts+++ b/studio/stores/pgmeta/MetaStore.ts@@ -119,7 +119,6 @@ export default class MetaStore implements IMetaStore {connectionString?: stringbaseUrl: string- queryBaseUrl: stringexcludedSchemas = ['auth','extensions',@@ -135,8 +134,7 @@ export default class MetaStore implements IMetaStore {constructor(rootStore: IRootStore, options: { projectRef: string; connectionString: string }) {const { projectRef, connectionString } = optionsthis.rootStore = rootStore- this.baseUrl = `/api/pg-meta/${projectRef}`- this.queryBaseUrl = `${API_URL}/pg-meta/${projectRef}`+ this.baseUrl = `${API_URL}/pg-meta/${projectRef}`const headers: any = {}if (IS_PLATFORM && connectionString) {@@ -172,7 +170,7 @@ export default class MetaStore implements IMetaStore {try {const headers: any = { 'Content-Type': 'application/json' }if (this.connectionString) headers['x-connection-encrypted'] = this.connectionString- const url = `${this.queryBaseUrl}/query`+ const url = `${this.baseUrl}/query`const response = await post(url, { query: value }, { headers })if (response.error) throw response.error