From 9fdb3c43117bebc42654b6fd4278728b02f01782 Mon Sep 17 00:00:00 2001 From: DarkSky Date: Tue, 20 Dec 2022 16:48:26 +0800 Subject: [PATCH] chore: fix path prefix --- .github/deployment/Caddyfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/deployment/Caddyfile b/.github/deployment/Caddyfile index dbb032229f..32b8e4e401 100644 --- a/.github/deployment/Caddyfile +++ b/.github/deployment/Caddyfile @@ -15,13 +15,15 @@ Cache-Control "public, max-age=86400, must-revalidate" } - reverse_proxy /api/* {$API_SERVER} { - health_uri /api/healthz - @error status 500 502 503 503 - handle_response @error { - root * /dist - rewrite * /50x.html - file_server + handle /api/* { + reverse_proxy {$API_SERVER} { + health_uri /api/healthz + @error status 500 502 503 503 + handle_response @error { + root * /dist + rewrite * /50x.html + file_server + } } }