Files
caszl-next/next.config.js
quantulr 73ae2850b6 update
2023-11-08 17:19:55 +08:00

20 lines
469 B
JavaScript

/** @type {import("next").NextConfig} */
const nextConfig = {
async rewrites() {
return process.env.NODE_ENV === "development"
? [
{
source: "/api/uploads/:path*",
destination: "http://101.34.131.16:8086/api/uploads/:path*",
},
{
source: "/api/:path*",
destination: "http://101.34.131.16:8086/api/:path*",
},
]
: [];
},
};
module.exports = nextConfig;