Commit 4f06bf6
committed
fix(docs): resolveDocPath 放宽超时+SSR UA+失败日志,修生产 404 自愈失效
resolveDocPath 的 fetch 之前 400ms 超时太紧、catch 静默无日志,
导致 Vercel SSR 调后端 resolve 拿不到结果时静默降级 404,服务端
308 自愈在生产不生效(DB/后端/数据均已验证正常)。
- 超时 400ms → 2500ms(Vercel→CF→Oracle 跨区+冷缓存留余量)
- 加 SSR UA + accept header(对齐 feed/page,规避 CF bot filter)
- catch 与非 3xx 分支加 console.error(status/cf-ray/error),
便于从 Vercel 运行时日志定位真实失败原因1 parent 04ec76e commit 4f06bf6
1 file changed
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
46 | 56 | | |
47 | 57 | | |
48 | 58 | | |
| |||
51 | 61 | | |
52 | 62 | | |
53 | 63 | | |
| 64 | + | |
54 | 65 | | |
55 | | - | |
56 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
57 | 79 | | |
58 | 80 | | |
59 | 81 | | |
| |||
0 commit comments