examples/storefront Public
components: storefront-api: kind: worker description: >- The public HTTP API (wrangler.jsonc, Worker storefront-api). Shoppers browse the catalog and fill carts; the merchant edits products and uploads their images with the admin token. owns: [src/**] talks_to: - { to: db, via: d1 } - { to: images, via: r2 } db: kind: d1 description: >- The storefront database: products, carts and cart items. Every schema change is a numbered file in migrations/, applied with wrangler d1 migrations apply. binding: DB owns: [migrations/**] images: kind: r2-bucket description: >- 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. binding: IMAGES