The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: stripe wrapper not working as expected in self hosted (#22076)
Austin Tranbd64792db65a
diff --git a/apps/studio/pages/api/pg-meta/[ref]/foreign-tables.ts b/apps/studio/pages/api/pg-meta/[ref]/foreign-tables.tsindex b5cf41f4be3..edf778d97d5 100644--- a/apps/studio/pages/api/pg-meta/[ref]/foreign-tables.ts+++ b/apps/studio/pages/api/pg-meta/[ref]/foreign-tables.ts@@ -13,6 +13,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {switch (method) {case 'GET':+ if (req.query.id) return handleGetOne(req, res)return handleGetAll(req, res)default:res.setHeader('Allow', ['GET'])@@ -30,3 +31,14 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {}return res.status(200).json(response)}++const handleGetOne = async (req: NextApiRequest, res: NextApiResponse) => {+ const headers = constructHeaders(req.headers)+ let response = await get(`${PG_META_URL}/foreign-tables/${req.query.id}`, {+ headers,+ })+ if (response.error) {+ return res.status(400).json({ error: response.error })+ }+ return res.status(200).json(response)+}