/** @type {import('next').NextConfig} */ const nextConfig = { // Turbopack configuration (Next.js 16+) turbopack: { resolveAlias: { buffer: 'buffer/', stream: 'stream-browserify', util: 'util/', }, }, // Allow cross-origin requests from the reverse proxy domain allowedDevOrigins: [ 'hub.slm-lab.net', 'https://hub.slm-lab.net', ], eslint: { ignoreDuringBuilds: true, }, typescript: { ignoreBuildErrors: true, }, images: { unoptimized: true, }, async headers() { return [ { source: '/:path*', headers: [ { key: 'Content-Security-Policy', value: "frame-ancestors 'self' https://espace.slm-lab.net https://connect.slm-lab.net" } ] } ] } }; export default nextConfig;