18 lines
362 B
TypeScript
18 lines
362 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
reactStrictMode: true,
|
|
async rewrites() {
|
|
const apiInternalUrl = process.env.API_INTERNAL_URL || "http://127.0.0.1:8000";
|
|
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${apiInternalUrl}/api/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|