Files
GovAI/apps/web/next.config.ts
2026-06-15 23:48:37 +08:00

19 lines
376 B
TypeScript

import type { NextConfig } from "next";
import path from "path";
const nextConfig: NextConfig = {
turbopack: {
root: path.resolve(__dirname),
},
async rewrites() {
return [
{
source: "/api/:path*",
destination: `${process.env.NEXT_PUBLIC_API_URL || "http://localhost:8080"}/api/:path*`,
},
];
},
};
export default nextConfig;