The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update CSP for staging storage (#20633)
Joshen Limbf500447a6a8
diff --git a/apps/studio/next.config.js b/apps/studio/next.config.jsindex d0d5b5aae7b..d3016239990 100644--- a/apps/studio/next.config.js+++ b/apps/studio/next.config.js@@ -36,12 +36,14 @@ const STYLE_SRC_URLS = `${CLOUDFLARE_CDN_URL}`const FONT_SRC_URLS = `${CLOUDFLARE_CDN_URL}`const csp = [- ...(process.env.VERCEL_ENV === 'preview' || process.env.NEXT_PUBLIC_ENVIRONMENT === 'local'+ ...(process.env.VERCEL_ENV === 'preview' ||+ process.env.NEXT_PUBLIC_ENVIRONMENT === 'local' ||+ process.env.NEXT_PUBLIC_ENVIRONMENT === 'staging'? [`default-src 'self' ${DEFAULT_SRC_URLS} ${SUPABASE_STAGING_PROJECTS_URL} ${VERCEL_LIVE_URL} ${PUSHER_URL};`,`script-src 'self' 'unsafe-eval' 'unsafe-inline' ${SCRIPT_SRC_URLS} ${VERCEL_LIVE_URL};`,`frame-src 'self' ${FRAME_SRC_URLS} ${VERCEL_LIVE_URL};`,- `img-src 'self' blob: data: ${IMG_SRC_URLS} ${VERCEL_URL};`,+ `img-src 'self' blob: data: ${IMG_SRC_URLS} ${SUPABASE_STAGING_PROJECTS_URL} ${VERCEL_URL};`,`style-src 'self' 'unsafe-inline' ${STYLE_SRC_URLS} ${VERCEL_LIVE_URL};`,`font-src 'self' ${FONT_SRC_URLS} ${VERCEL_LIVE_URL};`,]