提交 f2182aef 作者: 翁进城

请求服务修改

上级 1f878caa
const config = { const dev = {
baseUrl: ''
}
const prod = {
baseUrl: 'http://120.77.247.178' baseUrl: 'http://120.77.247.178'
} }
export default config; export default process.env.NODE_ENV === 'development' ? dev : prod;
\ No newline at end of file \ No newline at end of file
...@@ -11,6 +11,14 @@ const nextConfig = { ...@@ -11,6 +11,14 @@ const nextConfig = {
}, },
]; ];
}, },
async rewrites() {
return [
{
source: "/pms/:path*",
destination: "http://192.168.3.111:8099/pms/:path*",
},
];
},
pageExtensions: ["page.tsx", "page.ts", "page.jsx", "page.js"], pageExtensions: ["page.tsx", "page.ts", "page.jsx", "page.js"],
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论