Skip to content

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

feat: add api-catalog to .well-known (#44880)

Greg Richardson03d44c390d59
diff --git a/apps/www/next.config.mjs b/apps/www/next.config.mjs
index 8fcca52877f..d41e0f131e0 100644
--- a/apps/www/next.config.mjs
+++ b/apps/www/next.config.mjs
@@ -82,6 +82,22 @@ const nextConfig = {
},
async headers() {
return [
+ {
+ source: '/',
+ headers: [
+ {
+ key: 'Link',
+ value: '</.well-known/api-catalog>; rel="api-catalog"',
+ },
+ ],
+ },
+ {
+ source: '/.well-known/api-catalog',
+ headers: [
+ { key: 'content-type', value: 'application/linkset+json' },
+ { key: 'access-control-allow-origin', value: '*' },
+ ],
+ },
{
source: '/.well-known/vercel/flags',
headers: [
diff --git a/apps/www/public/.well-known/api-catalog b/apps/www/public/.well-known/api-catalog
new file mode 100644
index 00000000000..a83a0257975
--- /dev/null
+++ b/apps/www/public/.well-known/api-catalog
@@ -0,0 +1,23 @@
+{
+ "linkset": [
+ {
+ "anchor": "https://api.supabase.com/v1",
+ "service-desc": [
+ {
+ "href": "https://api.supabase.com/api/v1-json",
+ "type": "application/openapi+json"
+ }
+ ],
+ "service-doc": [
+ {
+ "href": "https://api.supabase.com/api/v1"
+ }
+ ],
+ "status": [
+ {
+ "href": "https://status.supabase.com"
+ }
+ ]
+ }
+ ]
+}