Shopify / hydrogen

Hydrogen lets you build faster headless storefronts in less time, on Shopify.
https://hydrogen.shop
MIT License
1.43k stars 273 forks source link

Sitemap.xml Generation #856

Open benjaminsehl opened 1 year ago

benjaminsehl commented 1 year ago

Work with Oxygen & Admin team to have a way for us to be able to provide them with a route configuration, and then they're able to generate a sitemap for us.

More info: https://docs.google.com/document/d/1z5Wb9To3HZuvnQvEDg3zpRFk1O2kj4ufOkyL1lnYjeA/edit#heading=h.f7j4g6x5zljn

bsmithrainbowshops commented 1 year ago

@benjaminsehl can you make that google doc public?

benjaminsehl commented 1 year ago

@bsmithrainbowshops — the doc linked is an internal product brief, but the main contents of it are outlining all of the various routes that can be served up by Liquid.

Here's that list:

/
/cart
/products
/products/:handle
/collections
/collections/:handle/:constraint (constraint = vendor / product type)
/collections/:handle/products/:handle
/pages
/pages/:handle
/blogs
/blogs/:blog_handle
/blogs/:blog_handle/tagged/:tag_handle
/blogs/:blog_handle/:article_handle
/blogs/:blog_handle/:article_handle/comments -> Redirects to /blogs/…/:article_handle#comments
/password (alias: /opening_soon)
/search
/policies/:policy_handle
/variants/:variant_id → Redirects to /products/:handle?variant=:variant_id
/account
/account/login
/account/register
/account/addresses
/account/orders
/account/orders/:order_id
/account/reset/:token
/account/activate/:token
/gift_cards/:store_id/:card_id (Alias of: checkout.shopify.com/gift_cards/:store_id/:card_id)
/discount/:discount_code?redirect=/new/path/name
/robots.txt
/sitemap.xml

This was meant just to stub out the issue, and we've decided to switch all issues/PRs/etc to be public facing from here on out. There will still be some pieces that will need to stay in private docs, but I'll try to share everything I can.