mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
Merge pull request #10362 from supabase/fix/x-robots
fix robots crawl issue
This commit is contained in:
1 file changed
+21
@@ -50,6 +50,27 @@ const nextConfig = {
|
||||
dangerouslyAllowSVG: true,
|
||||
domains: ['avatars.githubusercontent.com', 'github.com', 'user-images.githubusercontent.com'],
|
||||
},
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: '/(.*)',
|
||||
headers: [
|
||||
{
|
||||
key: 'Strict-Transport-Security',
|
||||
value: '',
|
||||
},
|
||||
{
|
||||
key: 'X-Robots-Tag',
|
||||
value: 'all',
|
||||
},
|
||||
{
|
||||
key: 'X-Frame-Options',
|
||||
value: 'DENY',
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
// next.config.js
|
||||
|
||||
Reference in new issue
Block a user