fix(deploy): 前端资源 - 保留旧版本分片并恢复加载

This commit is contained in:
ddCat
2026-09-24 00:04:55 +08:00
parent 117fa7d70b
commit 69b9f02937
8 changed files with 137 additions and 6 deletions

View File

@@ -74,6 +74,9 @@ services:
image: ghcr.io/ddcat-ai/open-ai-canvas-web:${CANVAS_IMAGE_TAG:-latest}
ports:
- "${CANVAS_HTTP_PORT:-3000}:3000"
volumes:
# Keep hashed chunks from the current and previous web releases for old tabs.
- ${CANVAS_WEB_DATA_PATH:-web-data}:/usr/share/nginx/html
depends_on:
backend:
condition: service_healthy
@@ -83,3 +86,4 @@ volumes:
backend-data:
postgres-data:
redis-data:
web-data: