Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(app): skip zod eval probe blocked by csp (#3468)

Hampusd2f19660e519
diff --git a/fluxer_app/src/index.tsx b/fluxer_app/src/index.tsx
index 55305abec..b73386341 100644
--- a/fluxer_app/src/index.tsx
+++ b/fluxer_app/src/index.tsx
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import '@fluxer/schema/src/ZodJitless';
import '@app/app/AbortSignalPolyfill';
import '@app/app/BootShell.css';
import {startAppStorage} from '@app/features/platform/state/AppStorageBootstrap';
diff --git a/packages/schema/src/ZodJitless.ts b/packages/schema/src/ZodJitless.ts
new file mode 100644
index 000000000..5c9426bef
--- /dev/null
+++ b/packages/schema/src/ZodJitless.ts
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {z} from 'zod';
+
+z.config({jitless: true});