Files
caszl-next/next.config.js

20 lines
451 B
JavaScript
Raw Normal View History

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() {
2023-11-07 17:14:42 +08:00
return process.env.NODE_ENV === "development"
? [
{
source: "/api/:path*",
destination: "http://localhost:8084/api/:path*",
},
{
source: "/admin-api/:path*",
destination: "http://localhost:8082/api/:path*",
},
]
: [];
},
2023-11-06 17:27:50 +08:00
};
2023-10-27 09:30:22 +08:00
2023-11-06 17:27:50 +08:00
module.exports = nextConfig;