refactor(web): extract categories into separate index
Resolves
https://github.com/orgs/Blazity/projects/3/views/3?pane=issue&itemId=61443612
Description
-
Extracts categories into its own
categoriesindex & adds as env variableMELISEARCH_CATEGORIES_INDEX -
refactor
MEILISEARCH_INDEXto env variableMEILISEARCH_PRODUCTS_INDEX -
refactor sync api route to only include
handleandidfor collection -
refactor faceting logic to work with
collection.handlerather thancollection.title -
refactor types to only pick
handleandidfor collections onPlatformProduct -
adds scripts for categories bulk push / products index cleanup
-
adds
slugToNameandnameToSlugutils to work withcollection.handle -
This needs to run the bulk cleanup against
productsindex once happy with CR -
Once done update env variable in vercel for products index for
preview/deployment
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| enterprise-commerce-web | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 30, 2024 10:50pm |