Added hsts preload directive to vercel config (#33980)

This commit is contained in:
Stephen Morgan authored and GitHub committed 2025-03-05 08:56:59 +13:00
1 parent f454f5d892
commit 470db8a0f4
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -74,7 +74,7 @@ const nextConfig = {
headers: [
{
key: 'Strict-Transport-Security',
value: process.env.VERCEL === '1' ? 'max-age=1200; includeSubDomains' : '',
value: process.env.VERCEL === '1' ? 'max-age=31536000; includeSubDomains; preload' : '',
},
{
key: 'X-Robots-Tag',
@@ -97,7 +97,7 @@ const nextConfig = {
headers: [
{
key: 'Strict-Transport-Security',
value: process.env.VERCEL === '1' ? 'max-age=1200; includeSubDomains' : '',
value: process.env.VERCEL === '1' ? 'max-age=31536000; includeSubDomains; preload' : '',
},
{
key: 'X-Robots-Tag',
+1 -1
View File
@@ -494,7 +494,7 @@ const nextConfig = {
key: 'Strict-Transport-Security',
value:
process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1'
? 'max-age=1200; includeSubDomains'
? 'max-age=31536000; includeSubDomains; preload'
: '',
},
{
+1 -1
View File
@@ -100,7 +100,7 @@ const nextConfig = {
key: 'Strict-Transport-Security',
value:
process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1'
? 'max-age=1200; includeSubDomains'
? 'max-age=31536000; includeSubDomains; preload'
: '',
},
],