people-reading/web/next.config.ts
2026-05-12 11:07:45 +08:00

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;