fix: mount CMS under cms base path
This commit is contained in:
parent
8ff983e858
commit
54b516ffee
@ -2,4 +2,5 @@ import { withPayload } from "@payloadcms/next/withPayload";
|
||||
|
||||
export default withPayload({
|
||||
reactStrictMode: true,
|
||||
basePath: "/cms",
|
||||
});
|
||||
|
||||
@ -2,10 +2,8 @@ https://192.168.199.22 {
|
||||
tls internal
|
||||
encode gzip
|
||||
|
||||
handle_path /cms/* {
|
||||
reverse_proxy 127.0.0.1:3001 {
|
||||
header_down Location ^/admin(.*)$ /cms/admin$1
|
||||
}
|
||||
handle /cms/* {
|
||||
reverse_proxy 127.0.0.1:3001
|
||||
}
|
||||
|
||||
handle /api/* {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user