mirror of
https://github.com/shawnkim1997/All-in-one-Financial-Analysis.git
synced 2026-08-18 12:58:07 +00:00
19 lines
554 B
JavaScript
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*",
|
|
},
|
|
];
|
|
},
|
|
};
|
|
}
|