Rebasely Beta: data may be purged

examples/storefront Public

YAML · 30 lines · 1.1 KiB · at 582fe0a

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 }      - { to: stripe, via: https }  db:    kind: d1    description: >-      The storefront database: products, carts, orders and their lines. 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  stripe:    kind: external    description: >-      Stripe, through the stripe npm package. storefront-api creates a PaymentIntent per order with      the secret key; the shopper confirms it in the browser with the Payment Element.    package: stripe