From fabafbd5131592b92576e8e3cdec97d32363ad7c Mon Sep 17 00:00:00 2001 From: bigcode Date: Thu, 1 Oct 2026 21:15:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E4=BF=AE=E5=A4=8D:/auth/*=20?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=20run=5Fworker=5Ffirst,=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E8=B7=AF=E7=94=B1=E6=9B=BE=E8=A2=AB=20SPA=20?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=B1=82=E6=88=AA=E8=83=A1=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=20index.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/wrangler.jsonc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/console/wrangler.jsonc b/console/wrangler.jsonc index fea5c1c..7b5c33e 100644 --- a/console/wrangler.jsonc +++ b/console/wrangler.jsonc @@ -20,7 +20,9 @@ // 前端在没有匹配路由的路径上 hydrate,渲染成 React Router 的 404 页面 —— // 表现为「Cloudflare 授权明明成功,回调却毫无反应」,后端 state 都没被消费。 // 用数组(而不是 true)可让静态资源保持 asset-first 快路径,不为每个资源文件多付一次 Worker 调用。 - "run_worker_first": ["/api/*", "/internal/*"] + // /auth/* 同理必须进 Worker:ZITADEL 统一登录的 status/login/callback 是 Worker 重定向端点(v2.9.0), + // 漏了会被 SPA 资源层截胡返回 index.html。 + "run_worker_first": ["/api/*", "/internal/*", "/auth/*"] }, "routes": [ // 自定义域名:wmailhub.adx9.com(CF 自动创建 DNS 记录并签发证书)