mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Added hsts preload directive to vercel config (#33980)
This commit is contained in:
1 parent
f454f5d892
commit
470db8a0f4
3 files changed
+4
-4
No files matched your search
@@ -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',
|
||||
|
||||
@@ -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'
|
||||
: '',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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'
|
||||
: '',
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user