Skip to content

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

Set noindex for preview builds of docs site (#28761)

Chris Gwilliams1bdf45bf4f5f
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs
index 3b988cf7a21..c94af1dac64 100644
--- a/apps/docs/next.config.mjs
+++ b/apps/docs/next.config.mjs
@@ -111,6 +111,35 @@ const nextConfig = {
value: 'DENY',
},
],
+ has: [
+ {
+ type: 'host',
+ value: 'supabase.com',
+ },
+ ],
+ },
+ {
+ source: '/:path*',
+ headers: [
+ {
+ key: 'Strict-Transport-Security',
+ value: '',
+ },
+ {
+ key: 'X-Robots-Tag',
+ value: 'noindex',
+ },
+ {
+ key: 'X-Frame-Options',
+ value: 'DENY',
+ },
+ ],
+ has: [
+ {
+ type: 'host',
+ value: '(?:.+\\.vercel\\.app)',
+ },
+ ],
},
]
},