Skip to content

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

use NEXT_PUBLIC_ENVIRONMENT variable

Alaister Young929f9ebf79d9
diff --git a/studio/next.config.js b/studio/next.config.js
index 04bde116ea9..fd60e53fd46 100644
--- a/studio/next.config.js
+++ b/studio/next.config.js
@@ -17,7 +17,7 @@ const path = require('path')
const csp = [
"frame-ancestors 'none';",
// IS_PLATFORM
- process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.NODE_ENV === 'production'
+ process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.NEXT_PUBLIC_ENVIRONMENT === 'prod'
? 'upgrade-insecure-requests;'
: '',
]