From df92d10944ec77261619005018a8630eaf03cd87 Mon Sep 17 00:00:00 2001 From: Nodoubtz <53144580+nodoubtz@users.noreply.github.com> Date: Thu, 6 Mar 2025 19:55:34 -0500 Subject: [PATCH] Create next.config.ts --- next.config.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 next.config.ts diff --git a/next.config.ts b/next.config.ts new file mode 100644 index 0000000000..d402a79e54 --- /dev/null +++ b/next.config.ts @@ -0,0 +1,23 @@ +// Headers for cross-origin isolation mode, required when you're using @motherduck/wasm-client +/** @type {import('next').NextConfig} */ +const nextConfig = { + async headers() { + return [ + { + source: "/:path*", + headers: [ + { + key: 'Cross-Origin-Opener-Policy', + value: 'same-origin', + }, + { + key: 'Cross-Origin-Embedder-Policy', + value: 'require-corp', + }, + ], + }, + ] + }, +} + +export default nextConfig;