deploy(nginx): route /assets/product-center/ to v2 api for shared icons
沙特国旗等新增图标只需放入 v2 仓库 public 目录;nginx 按最长前缀把 product-center 静态资源转发给 v2 api,其余 /assets/、/uploads/ 仍走 v1。 同步沉淀 AGENTS.md:入口 nginx 真实挂载源在 v1 仓库、文件型 bind mount 的 inode 陷阱。
This commit is contained in:
@@ -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/;
|
||||
|
||||
Reference in New Issue
Block a user