Add published user products to the storefront sitemap.
Expose /sitemap-user-products.xml when customer_products is enabled, invalidate on listing mutations, and proxy the new path from nginx provision scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
fb04425df7
commit
0d9c2fd8ea
@@ -36,6 +36,7 @@ paths = [
|
||||
("/sitemap-videos.xml", "sitemap-videos.xml"),
|
||||
("/sitemap-instructions.xml", "sitemap-instructions.xml"),
|
||||
("/sitemap-workshops.xml", "sitemap-workshops.xml"),
|
||||
("/sitemap-user-products.xml", "sitemap-user-products.xml"),
|
||||
("/robots.txt", "robots.txt"),
|
||||
]
|
||||
|
||||
|
||||
@@ -210,6 +210,16 @@ PROXY_COMMON=$(cat <<PROXY
|
||||
add_header Cache-Control "public, max-age=900";
|
||||
}
|
||||
|
||||
location = /sitemap-user-products.xml {
|
||||
proxy_pass https://api.meshkee.com/api/v1/tenants/${HOST}/sitemap-user-products.xml;
|
||||
proxy_set_header Host api.meshkee.com;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_set_header X-Real-IP \$remote_addr;
|
||||
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto \$scheme;
|
||||
add_header Cache-Control "public, max-age=900";
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
proxy_pass https://api.meshkee.com/api/v1/tenants/${HOST}/robots.txt;
|
||||
proxy_set_header Host api.meshkee.com;
|
||||
|
||||
Reference in New Issue
Block a user