From 9f343f19f6bcc1a01a031406a08e662b3027cca0 Mon Sep 17 00:00:00 2001 From: cloudneutral Date: Sun, 14 Dec 2025 23:46:38 +0800 Subject: [PATCH] Add rewrite for editor proxy --- next.config.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 5bca857..a9e01e0 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -94,4 +94,13 @@ export async function redirects() { ]; } +export async function rewrites() { + return [ + { + source: '/editor/:path*', + destination: 'http://localhost:4000/:path*', + }, + ]; +} + export default nextConfig;