955182b7c2
Route public health checks to the API, backfill and synchronize job opportunities, stabilize SPA smoke tests, and document operator-only production steps.
16 lines
599 B
JavaScript
16 lines
599 B
JavaScript
/** @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.
|
|
// Development mirrors nginx's SPA fallback with a rewrite to the root shell.
|
|
output: process.env.NODE_ENV === "development" ? undefined : "export",
|
|
reactStrictMode: true,
|
|
...(process.env.NODE_ENV === "development" && {
|
|
async rewrites() {
|
|
return [{ source: "/:path*", destination: "/" }];
|
|
},
|
|
}),
|
|
};
|
|
|
|
module.exports = nextConfig;
|