fix: delegate CMS prefix handling to Caddy

This commit is contained in:
flym 2026-09-09 23:05:48 +08:00
parent 2b9baf2f5e
commit 1df151dd0a
2 changed files with 1 additions and 2 deletions

View File

@ -2,5 +2,4 @@ import { withPayload } from "@payloadcms/next/withPayload";
export default withPayload({
reactStrictMode: true,
basePath: "/cms",
});

View File

@ -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
}