Add rewrite for editor proxy

This commit is contained in:
cloudneutral 2025-12-14 23:46:38 +08:00
parent 43b44341fd
commit 9f343f19f6

View File

@ -94,4 +94,13 @@ export async function redirects() {
];
}
export async function rewrites() {
return [
{
source: '/editor/:path*',
destination: 'http://localhost:4000/:path*',
},
];
}
export default nextConfig;