Start with the exact error and the layer that produced it. Most issues fall into local setup, API credentials, asynchronous delivery, or plugin isolation.
Local setup
nimbus-docs check reports many broken internal links — the route manifest
is missing or stale. Build first, then check:
pnpm build
pnpm checkBootstrap cannot create D1 — either sign in with
pnpm --filter edgecart exec wrangler login and re-run pnpm bootstrap, or use
a local-only setup with SKIP_D1_CREATE=1 pnpm bootstrap.
Login succeeds but API calls return 401 — the browser must use the same
origin as BETTER_AUTH_URL, and that origin must be listed in
TRUSTED_ORIGINS. http://localhost:3000 and http://127.0.0.1:3000 are
different origins for cookies.
Admin API returns 404 for a store you can see in the admin — send the
x-store-id header. A store the member does not belong to intentionally returns
404, not 403.
Database and migrations
Local data disappears after a reset — local D1 data lives in the Wrangler state directory. Re-run the migrations after clearing it.
Production tables are missing — local migrations do not apply to remote D1. Apply the migrations to the remote database as part of deployment.
Storefront and checkout
GET /api/storefront-config returns 404 — the deployment has no active
store. Open /admin as the first user to create it.
Keyed Storefront API calls return 401 — send the publishable key from the
bootstrap response in x-publishable-api-key. Never send a secret key from a
browser.
Checkout cannot complete — check, in order:
- The cart has a shipping method.
- A merchant rule is not blocking checkout.
- A plugin’s
checkout:validatehook is not rejecting the cart. - Stripe keys are configured if the cart total is greater than zero.
Prices differ between the product page and the cart — cart lines snapshot their price when added or updated. Re-add the line to pick up a new price. See current limitations.
Webhooks and email
Webhooks are not delivered — confirm the outbox Worker is deployed and the
edgecart-outbox queue has a consumer. A 410 Gone response deactivates an
endpoint; reactivate or recreate it.
Signature verification fails — compute the HMAC over the raw request body
and the t value, not a parsed and re-serialized JSON object. See
webhooks & events.
Order email is missing — locally, SMTP_HOST empty means auth email is
logged, not sent. In production, the outbox Worker needs its own EMAIL_FROM and
SMTP secrets; the main app’s secrets are not shared.
Uploads
Image upload returns 503 uploads_unavailable — the deployment is missing
the R2 binding used for uploads. This is a deployment configuration problem, not
a merchant problem.
An old image is still reachable after replacement — replacing an image does not delete the previous R2 object. Cleanup is not implemented.
Plugins
A plugin has no effect — confirm all of the following:
- The plugin is installed and enabled for the store.
- Its release is approved and not yanked.
- Its settings validate against the manifest.
- Its declared capabilities cover the hook it needs.
- The
PLUGIN_KERNELservice binding is configured.
Check the installed plugin’s invocation log in the admin. See the Plugin guide for the runtime and trust model.
When to contact the operator
Stripe, SMTP, custom domains, Cloudflare resources, R2, queues, and
PLATFORM_ADMIN_EMAILS are deployment settings. Contact the deployment operator
if they need changes.