Files
caszl-next/next.config.js

20 lines
469 B
JavaScript
Raw Permalink 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"
? [
{
2023-11-08 17:19:55 +08:00
source: "/api/uploads/:path*",
destination: "http://101.34.131.16:8086/api/uploads/:path*",
2023-11-07 17:14:42 +08:00
},
{
2023-11-08 17:19:55 +08:00
source: "/api/:path*",
destination: "http://101.34.131.16:8086/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;