Rebasely Beta: data may be purged

examplesstorefront Public

Search the catalog with D1 full text search #4

Changed files

21 files changed404 additions24 deletionssince main at f6403bb

View catalog

1 component added, 1 changed, 1 connection added

  • Added
  • Changed
  • Removed

What browsing and searching the shop touches, and where product images come from.

What this pull request changes in the view catalog: 4 components, 3 connections storefront-api to db (d1)storefront-api to search (d1): addedstorefront-api to images (r2)d1d1r2storefront-api (changed)storefront-apiWorker · changeddbdbD1 databasesearch (added)searchD1 database · addedimagesimagesR2 bucket

The view catalog at the head of this pull request, with what it adds, changes and removes from the merge base f6403bb. Select a component for what changed in it.

images

Bucket storefront-images: product images under products/<product>/<hash>.<ext>. A key is never overwritten, so every image URL can be cached for a year. Public on its custom domain (IMAGES_URL), where browsers load the images; storefront-api only writes to it.

Not changed by this pull request.

Takes part in Uploading a product image.

Changes

  • Changed: ~ view catalog: description
  • Changed: ~ view catalog: components +search
  • Changed: ~ storefront-api: description
  • Added: + component search (d1)
  • Added: + edge storefront-api → search (d1)

Knowledge base

Back to the conversation