2023-11-06 17:27:50 +08:00
|
|
|
/** @type {import("next").NextConfig} */
|
2023-11-01 17:27:06 +08:00
|
|
|
const nextConfig = {
|
2023-11-06 17:27:50 +08:00
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: "/api/:path*",
|
|
|
|
destination: "http://localhost:8084/api/:path*"
|
|
|
|
}, {
|
|
|
|
source: "/admin-api/:path*",
|
|
|
|
destination: "http://localhost:8082/api/:path*"
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|
|
|
|
};
|
2023-10-27 09:30:22 +08:00
|
|
|
|
2023-11-06 17:27:50 +08:00
|
|
|
module.exports = nextConfig;
|