Files
All-in-one-Financial-Analysis/atlas-terminal/apps/web/next.config.mjs
T

19 lines
554 B
JavaScript

import { PHASE_DEVELOPMENT_SERVER } from "next/constants.js";
/** @type {(phase: string) => import('next').NextConfig} */
export default function nextConfig(phase) {
return {
// Keep dev and production build artifacts separate so `next build`
// does not invalidate a running `next dev` session.
distDir: phase === PHASE_DEVELOPMENT_SERVER ? ".next-dev" : ".next",
async rewrites() {
return [
{
source: "/api/:path*",
destination: "http://localhost:8000/api/:path*",
},
];
},
};
}