/** @type {import('next').NextConfig} */ const nextConfig = { // The whole app is client-rendered React Router behind auth (see app/page.tsx) -- static // export keeps the same "one index.html + JS bundle, served by nginx" deploy as CRA had. // `next dev` cannot generate arbitrary optional-catch-all paths under static-export mode. output: process.env.NODE_ENV === "development" ? undefined : "export", reactStrictMode: true, }; module.exports = nextConfig;