deploy(nginx): route /assets/product-center/ to v2 api for shared icons; ignore backups/

This commit is contained in:
yeuimu
2026-09-02 11:40:51 +08:00
parent 5c5fb88f58
commit e34398a002
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -10,4 +10,4 @@ deploy/data-dump.json
uploads/ uploads/
.pnpm-store/ .pnpm-store/
data-cleaning/ data-cleaning/
backups/.zcode/ backups/
+7
View File
@@ -98,6 +98,13 @@ server {
proxy_set_header Host $host; 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 # Website placeholder until the public site is deployed
location / { location / {
return 302 /admin/; return 302 /admin/;