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;