Staff login
Default: admin123 — change via ADMIN_TOKEN secret. This guards /admin and /api/admin/*.
Orders
| ID | Date | Items | Total | Status | Actions |
|---|
Orders are stored in Worker memory + KV (if bound) — free tier friendly. For durable D1, run wrangler d1 create zennzoya-db and migrate.
Products (6 debut quilts)
Seed catalog — edit in worker.js PRODUCTS or via future D1/R2. R2 bucket for images: zennzoya-images.
| Title | Slug | Price | Size | Stock |
|---|
Stripe integration — provide your keys
Keys are stored in Worker KV (if bound) otherwise in-memory (demo). For production, set secrets: wrangler secret put STRIPE_SECRET_KEY, STRIPE_PUBLISHABLE_KEY, STRIPE_WEBHOOK_SECRET. UI saves to KV and overrides env if present.
How to get keys
Stripe Dashboard → Developers → API keys → Publishable + Secret. Webhooks → Add endpoint → https://YOUR_WORKER/api/webhook/stripe → copy signing secret.
Without Stripe (demo mode)
Leave secret empty — checkout creates a pending order and shows success. No card charged. Great for testing before going live.
Other settings
Staff help
- Orders: change status → updates customer view (future email via Resend).
- Stripe: when keys are set, store checkout redirects to Stripe Checkout (Apple Pay / Google Pay).
- Webhook: Stripe posts to
/api/webhook/stripe→ order auto-marked paid. - Deploy:
wrangler deploy— Workers + Assets.