nomadro/apps/nomadweb/frontend/next.config.ts
eric 9928c5185b Mount nav/book/community as native App Router routes in one Next process.
Replace reverse-proxy/iframe approach with @ebook/@community/@navmini imports under /nav /book /community so localhost:3000 serves all three products directly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 03:49:16 -05:00

19 lines
428 B
TypeScript

import type { NextConfig } from "next";
/** Standalone nomadweb deploy only — portal uses src via @community/* */
const nextConfig: NextConfig = {
output: "standalone",
poweredByHeader: false,
compress: true,
async rewrites() {
return [
{
source: "/api/:path*",
destination: `${process.env.API_URL || "http://localhost:8000"}/api/:path*`,
},
];
},
};
export default nextConfig;