The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(consent-state): add IS_PLATFORM check in initUserCentrics() (#35805)
Igor Mytyukfa2c766aeacf
diff --git a/packages/common/consent-state.ts b/packages/common/consent-state.tsindex 10b5b467992..10b6d1ca2dd 100644--- a/packages/common/consent-state.ts+++ b/packages/common/consent-state.ts@@ -1,7 +1,7 @@import type Usercentrics from '@usercentrics/cmp-browser-sdk'import type { BaseCategory, UserDecision } from '@usercentrics/cmp-browser-sdk'import { proxy, snapshot, useSnapshot } from 'valtio'-import { LOCAL_STORAGE_KEYS } from './constants'+import { LOCAL_STORAGE_KEYS, IS_PLATFORM } from './constants'export const consentState = proxy({// Usercentrics state@@ -60,6 +60,7 @@ export const consentState = proxy({async function initUserCentrics() {if (process.env.NODE_ENV === 'test') return+ if (!IS_PLATFORM) returnconst { default: Usercentrics } = await import('@usercentrics/cmp-browser-sdk')