The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Added hsts header via vercel.json (#33571)
Stephen Morganc8824e445b38
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjsindex 18267dfd271..4a6a533d7a3 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: '',+ value: process.env.VERCEL === '1' ? 'max-age=31536000' : '',},{key: 'X-Robots-Tag',@@ -97,7 +97,7 @@ const nextConfig = {headers: [{key: 'Strict-Transport-Security',- value: '',+ value: process.env.VERCEL === '1' ? 'max-age=31536000' : '',},{key: 'X-Robots-Tag',diff --git a/apps/studio/next.config.js b/apps/studio/next.config.jsindex 383dfa1b593..51e5b0329ec 100644--- a/apps/studio/next.config.js+++ b/apps/studio/next.config.js@@ -485,6 +485,13 @@ const nextConfig = {key: 'X-Content-Type-Options',value: 'no-sniff',},+ {+ key: 'Strict-Transport-Security',+ value:+ process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1'+ ? 'max-age=31536000'+ : '',+ },{key: 'Content-Security-Policy',value: process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' ? csp : "frame-ancestors 'none';",diff --git a/apps/www/next.config.mjs b/apps/www/next.config.mjsindex 64cd7f84bfd..7a8c02b5bd6 100644--- a/apps/www/next.config.mjs+++ b/apps/www/next.config.mjs@@ -57,10 +57,6 @@ const nextConfig = {{source: '/:path*',headers: [- {- key: 'Strict-Transport-Security',- value: '',- },{key: 'X-Robots-Tag',value: 'all',@@ -84,6 +80,12 @@ const nextConfig = {source: '/favicon/:slug*',headers: [{ key: 'cache-control', value: 'public, max-age=86400' }],},+ {+ source: "/(.*)",+ headers: [{+ key: 'Strict-Transport-Security',+ value: process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1' ? 'max-age=31536000' : '' }],+ },]},async rewrites() {