Merge pull request #10362 from supabase/fix/x-robots

fix robots crawl issue
This commit is contained in:
Terry Sutton authored and GitHub committed 2022-11-16 11:51:51 -03:30
commit b623c8d450
1 file changed
+21
+21
View File
@@ -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