fix(deploy): proxy_pass double http:// prefix — API was down
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -277,6 +277,7 @@ function onPointerUp(event: PointerEvent): void {
|
|||||||
// 不会再来)hover 原因同样会永久残留,这里按坐标判定一并清除;窗内正常
|
// 不会再来)hover 原因同样会永久残留,这里按坐标判定一并清除;窗内正常
|
||||||
// 释放不清(点击后悬停继续暂停是合理行为)。
|
// 释放不清(点击后悬停继续暂停是合理行为)。
|
||||||
const rect = viewportEl.value?.getBoundingClientRect();
|
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 (
|
if (
|
||||||
rect !== undefined &&
|
rect !== undefined &&
|
||||||
(event.clientX < rect.left ||
|
(event.clientX < rect.left ||
|
||||||
@@ -395,8 +396,9 @@ function onFocusOut(): void {
|
|||||||
|
|
||||||
// window 级兜底(滚动卡死修复 2026-09-23):pointerup 落在窗外/别的元素、
|
// window 级兜底(滚动卡死修复 2026-09-23):pointerup 落在窗外/别的元素、
|
||||||
// 或整个 iframe 失焦(弹框抢焦点)时也要清 pointer 原因,避免暂停态永久卡住。
|
// 或整个 iframe 失焦(弹框抢焦点)时也要清 pointer 原因,避免暂停态永久卡住。
|
||||||
function onWindowPointerEnd(): void {
|
function onWindowPointerEnd(event: PointerEvent): void {
|
||||||
if (pointerDownY !== null) onPointerUp();
|
console.log('[dbg-wpe]', event.type, 'pointerDownY =', pointerDownY);
|
||||||
|
if (pointerDownY !== null) onPointerUp(event);
|
||||||
}
|
}
|
||||||
function onWindowBlur(): void {
|
function onWindowBlur(): void {
|
||||||
pointerDownY = null;
|
pointerDownY = null;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ server {
|
|||||||
# 静态资源 gzip 不受影响)。
|
# 静态资源 gzip 不受影响)。
|
||||||
location ^~ /v1/ {
|
location ^~ /v1/ {
|
||||||
gzip off;
|
gzip off;
|
||||||
proxy_pass http://${API_UPSTREAM};
|
proxy_pass ${API_UPSTREAM};
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|||||||
Reference in New Issue
Block a user