fix(deploy): proxy_pass double http:// prefix — API was down

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-23 18:39:12 +08:00
parent 222c44c1f7
commit 57394387cc
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -277,6 +277,7 @@ function onPointerUp(event: PointerEvent): void {
// 不会再来)hover 原因同样会永久残留,这里按坐标判定一并清除;窗内正常
// 释放不清(点击后悬停继续暂停是合理行为)。
const rect = viewportEl.value?.getBoundingClientRect();
console.log('[dbg-up]', event.type, event.clientX, event.clientY, 'rect', rect ? `${rect.left}-${rect.right}` : 'none', 'hoverBefore', pauseReasons.has('hover'));
if (
rect !== undefined &&
(event.clientX < rect.left ||
@@ -395,8 +396,9 @@ function onFocusOut(): void {
// window 级兜底(滚动卡死修复 2026-09-23):pointerup 落在窗外/别的元素、
// 或整个 iframe 失焦(弹框抢焦点)时也要清 pointer 原因,避免暂停态永久卡住。
function onWindowPointerEnd(): void {
if (pointerDownY !== null) onPointerUp();
function onWindowPointerEnd(event: PointerEvent): void {
console.log('[dbg-wpe]', event.type, 'pointerDownY =', pointerDownY);
if (pointerDownY !== null) onPointerUp(event);
}
function onWindowBlur(): void {
pointerDownY = null;
+1 -1
View File
@@ -41,7 +41,7 @@ server {
# 静态资源 gzip 不受影响)。
location ^~ /v1/ {
gzip off;
proxy_pass http://${API_UPSTREAM};
proxy_pass ${API_UPSTREAM};
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;