/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, output: 'standalone', // ffmpeg.wasm needs SharedArrayBuffer, which requires cross-origin isolation headers. async headers() { return [ { source: '/(.*)', headers: [ { key: 'Cross-Origin-Opener-Policy', value: 'same-origin' }, { key: 'Cross-Origin-Embedder-Policy', value: 'require-corp' }, ], }, ]; }, }; module.exports = nextConfig;