Files
gitlab-instance-0a899031_cn…/next.config.ts
root 00b1c8eb8b s
2026-06-06 23:05:17 +08:00

31 lines
760 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async rewrites() {
return [
{
source:
"/api/:path((?:health|cities|content|notifications|recommendations|routes|services|downloads|meetups|discussions|gigs|profiles|matches|feedback|stats|ai).*)",
destination: "http://127.0.0.1:8000/api/:path",
},
];
},
allowedDevOrigins: [
"localhost",
"localhost:3000",
"127.0.0.1",
"127.0.0.1:3000",
"172.27.128.1",
"172.27.128.1:3000",
"192.168.41.222",
"192.168.41.222:3000",
"192.168.41.222:3001",
"http://localhost:3000",
"http://127.0.0.1:3000",
"http://172.27.128.1:3000",
"http://192.168.41.222:3000",
],
};
export default nextConfig;