Rebasely Beta: data may be purged

examples/storefront Public

JSON · 32 lines · 1.2 KiB · at 75e565d

// storefront-api: the public HTTP API. Create the database once with// `npx wrangler d1 create storefront` and put its id in database_id.{  "$schema": "node_modules/wrangler/config-schema.json",  "name": "storefront-api",  "main": "src/index.ts",  "compatibility_date": "2026-09-01",  "observability": { "enabled": true },  "d1_databases": [    {      "binding": "DB",      "database_name": "storefront",      "database_id": "",      "migrations_dir": "migrations"    },    // The catalog's search index, apart from the shop's data so search reads never queue behind    // checkout's writes. Create it with `npx wrangler d1 create storefront-search`.    {      "binding": "SEARCH",      "database_name": "storefront-search",      "database_id": "",      "migrations_dir": "search/migrations"    }  ],  "r2_buckets": [{ "binding": "IMAGES", "bucket_name": "storefront-images" }],  // storefront-images is public on this custom domain (R2 > Settings > Custom Domains).  "vars": { "IMAGES_URL": "https://images.larkspur.shop" },  "triggers": { "crons": ["*/5 * * * *"] },  "queues": {    "producers": [{ "binding": "ORDER_EVENTS", "queue": "order-events" }]  }}