浏览代码

fix: Caddyfile.dev routes /api/* via handle directive (not handle_path)

handle_path was inadvertently stripping /api prefix, but Express
mounts routes at /api/* so the full path must be forwarded.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
kingkong 1 月之前
父节点
当前提交
afb1fac7be
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Caddyfile.dev

+ 1 - 1
Caddyfile.dev

@@ -12,7 +12,7 @@
     }
 
     @api path /api/*
-    handle_path /api/* {
+    handle @api {
         reverse_proxy vidreview-api-dev:3001 {
             header_down -Origin
         }