/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, // The app root ("/") is the public participation-manual landing page // (collectives P1): no redirect — see src/app/page.tsx. Signed-in visitors // are sent to /streams client-side so the manual stays reachable. async rewrites() { const api = (process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:3000").replace(/\/$/, ""); return [{ source: "/media-control/preview/:path*", destination: `${api}/media-control/preview/:path*` }]; }, }; export default nextConfig;