From 1df151dd0a6157abce667452cfbe9bc00de35b0a Mon Sep 17 00:00:00 2001 From: flym Date: Wed, 9 Sep 2026 23:05:48 +0800 Subject: [PATCH] fix: delegate CMS prefix handling to Caddy --- apps/cms/next.config.mjs | 1 - infra/caddy/Caddyfile | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/cms/next.config.mjs b/apps/cms/next.config.mjs index 1defe64..8eae5ef 100644 --- a/apps/cms/next.config.mjs +++ b/apps/cms/next.config.mjs @@ -2,5 +2,4 @@ import { withPayload } from "@payloadcms/next/withPayload"; export default withPayload({ reactStrictMode: true, - basePath: "/cms", }); diff --git a/infra/caddy/Caddyfile b/infra/caddy/Caddyfile index abf8da0..66c586a 100644 --- a/infra/caddy/Caddyfile +++ b/infra/caddy/Caddyfile @@ -2,7 +2,7 @@ https://192.168.199.22 { tls internal encode gzip - handle /cms/* { + handle_path /cms/* { reverse_proxy 127.0.0.1:3001 }