Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Second phase of HSTS header settings (#33857)

Stephen Morgan71a108ef92de
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs
index 4a6a533d7a3..4c0f11e429b 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=31536000' : '',
+ value: process.env.VERCEL === '1' ? 'max-age=1200; includeSubDomains' : '',
},
{
key: 'X-Robots-Tag',
@@ -97,7 +97,7 @@ const nextConfig = {
headers: [
{
key: 'Strict-Transport-Security',
- value: process.env.VERCEL === '1' ? 'max-age=31536000' : '',
+ value: process.env.VERCEL === '1' ? 'max-age=1200; includeSubDomains' : '',
},
{
key: 'X-Robots-Tag',
diff --git a/apps/studio/next.config.js b/apps/studio/next.config.js
index 79224655fd2..7194d2f3a19 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=31536000'
+ ? 'max-age=1200; includeSubDomains'
: '',
},
{
diff --git a/apps/www/next.config.mjs b/apps/www/next.config.mjs
index 7a8c02b5bd6..bf3de651f51 100644
--- a/apps/www/next.config.mjs
+++ b/apps/www/next.config.mjs
@@ -84,7 +84,7 @@ const nextConfig = {
source: "/(.*)",
headers: [{
key: 'Strict-Transport-Security',
- value: process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1' ? 'max-age=31536000' : '' }],
+ value: process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1' ? 'max-age=1200; includeSubDomains' : '' }],
},
]
},