/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, async redirects() { return [{ source: "/", destination: "/streams", permanent: false }]; }, 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;