nextConfig.headers() — supabase Function Reference
Architecture documentation for the nextConfig.headers() function in next.config.mjs from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/docs/next.config.mjs lines 67–120
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'Strict-Transport-Security',
value: process.env.VERCEL === '1' ? 'max-age=31536000; includeSubDomains; preload' : '',
},
{
key: 'X-Robots-Tag',
value: 'all',
},
{
key: 'X-Frame-Options',
value: 'DENY',
},
],
has: [
{
type: 'host',
value: 'supabase.com',
},
],
},
{
source: '/:path*',
headers: [
{
key: 'Strict-Transport-Security',
value: process.env.VERCEL === '1' ? 'max-age=31536000; includeSubDomains; preload' : '',
},
{
key: 'X-Robots-Tag',
value: 'noindex',
},
{
key: 'X-Frame-Options',
value: 'DENY',
},
],
has: [
{
type: 'host',
value: '(?:.+\\.vercel\\.app)',
},
],
},
{
source: '/favicon/:slug*',
headers: [{ key: 'cache-control', value: 'public, max-age=86400' }],
},
]
},
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free