From 187de3165b247bec45e17f3f42971eaeb422b118 Mon Sep 17 00:00:00 2001 From: flym Date: Thu, 10 Sep 2026 00:31:22 +0800 Subject: [PATCH] fix: restore Next basePath with Caddy passthrough --- apps/cms/next.config.mjs | 1 + infra/caddy/Caddyfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/cms/next.config.mjs b/apps/cms/next.config.mjs index 8eae5ef..1defe64 100644 --- a/apps/cms/next.config.mjs +++ b/apps/cms/next.config.mjs @@ -2,4 +2,5 @@ import { withPayload } from "@payloadcms/next/withPayload"; export default withPayload({ reactStrictMode: true, + basePath: "/cms", }); diff --git a/infra/caddy/Caddyfile b/infra/caddy/Caddyfile index 66c586a..abf8da0 100644 --- a/infra/caddy/Caddyfile +++ b/infra/caddy/Caddyfile @@ -2,7 +2,7 @@ https://192.168.199.22 { tls internal encode gzip - handle_path /cms/* { + handle /cms/* { reverse_proxy 127.0.0.1:3001 }