Skip to content

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

fix: edgeFunctions test should not follow redirects (#35690)

Etienne Stalmans914876070df7
diff --git a/apps/studio/pages/api/edge-functions/test.ts b/apps/studio/pages/api/edge-functions/test.ts
index cd53337cbc5..044dfe70cdb 100644
--- a/apps/studio/pages/api/edge-functions/test.ts
+++ b/apps/studio/pages/api/edge-functions/test.ts
@@ -69,6 +69,7 @@ async function handlePost(req: NextApiRequest, res: NextApiResponse) {
method,
headers: requestHeaders,
body: finalBody,
+ redirect: 'manual', // don't follow the redirect and return response as is
})
// Handle non-JSON responses