Files
caszl-next/next.config.js

20 lines
465 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*",
2023-11-08 15:42:55 +08:00
destination: "http://101.34.131.16:8086/api/:path*",
2023-11-07 17:14:42 +08:00
},
{
source: "/admin-api/:path*",
2023-11-08 15:42:55 +08:00
destination: "http://101.34.131.16:8086/admin-api/:path*",
2023-11-07 17:14:42 +08:00
},
]
: [];
},
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;