Files
investor-flow/app/next.config.ts
T

12 lines
396 B
TypeScript
Raw Normal View History

import type { NextConfig } from "next";
// Proxy /api/* to the local Bun/Node backend (slice 1f) so the SPA and backend share an
// origin — session cookies work without cross-origin/CORS gymnastics (DESIGN.md §2.1).
const nextConfig: NextConfig = {
rewrites: async () => [
{ source: "/api/:path*", destination: "http://localhost:3001/api/:path*" },
],
};
export default nextConfig;