From 470db8a0f4d33f750b2f7eb2a407235f1ca69d37 Mon Sep 17 00:00:00 2001 From: Stephen Morgan Date: Wed, 5 Mar 2025 08:56:59 +1300 Subject: [PATCH] Added hsts preload directive to vercel config (#33980) --- apps/docs/next.config.mjs | 4 ++-- apps/studio/next.config.js | 2 +- apps/www/next.config.mjs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs index 4c0f11e429b..099ffc57ad6 100644 --- a/apps/docs/next.config.mjs +++ b/apps/docs/next.config.mjs @@ -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', diff --git a/apps/studio/next.config.js b/apps/studio/next.config.js index 7194d2f3a19..2980f24a8f2 100644 --- a/apps/studio/next.config.js +++ b/apps/studio/next.config.js @@ -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' : '', }, { diff --git a/apps/www/next.config.mjs b/apps/www/next.config.mjs index 62fa7f28750..cc704a40d84 100644 --- a/apps/www/next.config.mjs +++ b/apps/www/next.config.mjs @@ -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' : '', }, ],