20 lines
469 B
JavaScript
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;
|