From e34398a002b621b31e99dc5aa221cd5eaeda8bb4 Mon Sep 17 00:00:00 2001 From: yeuimu <2197651308@qq.com> Date: Wed, 2 Sep 2026 11:40:51 +0800 Subject: [PATCH] deploy(nginx): route /assets/product-center/ to v2 api for shared icons; ignore backups/ --- .gitignore | 2 +- deploy/nginx/admin.conf | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1876ca3..57ba706 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,4 @@ deploy/data-dump.json uploads/ .pnpm-store/ data-cleaning/ -backups/.zcode/ +backups/ diff --git a/deploy/nginx/admin.conf b/deploy/nginx/admin.conf index acd9911..c2d1c19 100644 --- a/deploy/nginx/admin.conf +++ b/deploy/nginx/admin.conf @@ -98,6 +98,13 @@ server { proxy_set_header Host $host; } + # Product-center icons maintained in the v2 repo — serve from the v2 api + # (more specific prefix than /assets/, so it takes precedence) + location /assets/product-center/ { + proxy_pass http://v2-api:3001/assets/product-center/; + proxy_set_header Host $host; + } + # Website placeholder until the public site is deployed location / { return 302 /admin/;