update
This commit is contained in:
@ -1,16 +1,19 @@
|
||||
/** @type {import("next").NextConfig} */
|
||||
const nextConfig = {
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: "/api/:path*",
|
||||
destination: "http://localhost:8084/api/:path*"
|
||||
}, {
|
||||
source: "/admin-api/:path*",
|
||||
destination: "http://localhost:8082/api/:path*"
|
||||
},
|
||||
];
|
||||
}
|
||||
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*",
|
||||
},
|
||||
]
|
||||
: [];
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
|
Reference in New Issue
Block a user