Back to docs

Documentation

Quick start

Run the template locally, connect backend fallbacks, and verify the core flows.

Article
PreviousNext

Use the workspace filter from the repo root:

pnpm --filter @zship/web-nextjs dev
pnpm --filter @zship/web-nextjs check
pnpm --filter @zship/web-nextjs build:worker

The dev server runs on port 4331.

Local backend fallback

Production uses Cloudflare Service Bindings. Local development can use fallback URLs from the Worker environment:

  • AUTH_SERVICE_URL
  • PAY_SERVICE_URL
  • SUPPORT_SERVICE_URL
  • BLOG_SERVICE_URL
  • CHECKIN_SERVICE_URL
  • AI_SERVICE_URL
  • CDN_SERVICE_URL
  • SITE_SERVICE_URL
  • PROMPT_SERVICE_URL
  • PROVIDER1_SERVICE_URL
  • ENTERPRISE_BILLING_SERVICE_URL
  • ZSHIP_KEY

When a Service Binding is unavailable, the proxy layer calls the fallback URL and attaches x-zship-key only for the HTTP fallback path.

For local end-to-end debugging, start the backend workers with the same wrangler version as this app — a mismatched local dev registry can leave bindings unresolved (the binding stub then returns a JSON 503 instead of falling back to HTTP).

First smoke path

  1. Open / and confirm the manifest brand renders.
  2. Open /pricing and confirm plan data loads from the payment service.
  3. Register or sign in through /login or /auth/register.
  4. Open /dashboard and confirm the session-gated overview renders.
  5. Open /changelog and /roadmap and confirm local content renders.
  6. Open /sitemap.xml, /robots.txt, and /llms.txt and confirm public URLs are listed.