2 次代码提交 e194038778 ... 0e852341e3

作者 SHA1 备注 提交日期
  kingkong 0e852341e3 fix: eliminate stuck job root causes — button visibility, watchdog, and cancel bugs 1 月之前
  kingkong e194038778 fix: eliminate stuck job root causes — button visibility, watchdog, and cancel bugs 1 月之前
共有 2 个文件被更改,包括 2 次插入6 次删除
  1. 0 6
      Dockerfile.api
  2. 2 0
      packages/api/src/routes/assets.ts

+ 0 - 6
Dockerfile.api

@@ -1,12 +1,6 @@
 FROM node:22-slim
 
 # Install FFmpeg + wget (for thumbnail generation and healthcheck)
-# DNS: 1.1.1.1 for fast DNS resolution; fallback to security.debian.org mirror
-RUN cat > /etc/resolv.conf <<EOF
-nameserver 1.1.1.1
-nameserver 8.8.8.8
-nameserver 8.26.56.26
-EOF
 RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg wget ca-certificates && rm -rf /var/lib/apt/lists/*
 
 WORKDIR /app

+ 2 - 0
packages/api/src/routes/assets.ts

@@ -512,6 +512,8 @@ router.delete('/:id', async (req: Request, res: Response) => {
   }
 });
 
+// ── Admin routes (registered before /:id so /admin/* is never shadowed) ────
+
 // GET /api/assets/admin/stuck-count — lightweight workspace-wide stuck job count
 router.get('/admin/stuck-count', async (req: Request, res: Response) => {
   try {