Skip to content

One-click deploy

StoreCay Starter is a private GitHub repo. After you buy a license you receive a collaborator invite. That gives you source access — it does not make Cloudflare’s public Deploy Button work.

Pasting the starter URL into deploy.workers.cloudflare.com shows:

Repository not found. Are you sure it’s public?

That is expected. Cloudflare’s Deploy to Cloudflare button only clones public GitHub/GitLab repos. Being invited as a collaborator does not change that — Cloudflare still fetches the URL as a public clone.

Do not use:

https://deploy.workers.cloudflare.com/?url=https://github.com/caydock/store-cay-starter

(or any other private starter URL)

Closest equivalent to “one-click” for a licensed private template:

  1. Buy on storecay.com.
  2. Accept the GitHub invite to the private starter.
  3. Fork (or create a new repo from the template) into your GitHub account. Keep it private if you want.
  4. In the Cloudflare dashboard → Workers & Pages → Create → Import a repository. Connect GitHub and pick your fork.
  5. Cloudflare Workers Builds reads wrangler.jsonc, can provision D1 / R2, and deploys to your account.

This dashboard import uses the GitHub App on your account, so private forks work. The green Deploy Button does not.

  1. Set secrets:
Terminal window
npx wrangler secret put SESSION_SECRET
npx wrangler secret put GUEST_TOKEN_SECRET
# optional payments / email
npx wrangler secret put STRIPE_SECRET_KEY
npx wrangler secret put STRIPE_WEBHOOK_SECRET
npx wrangler secret put PAYPAL_CLIENT_SECRET
npx wrangler secret put RESEND_API_KEY
  1. Apply migrations if needed:
Terminal window
npx wrangler d1 migrations apply DB --remote
  1. Seed an admin user (from a local clone of your fork):
Terminal window
npx tsx scripts/seed-admin.ts you@example.com 'your-password' "Your Name"
  1. Edit store.config.ts for site URL, brand, and feature flags.
  2. Point Stripe webhook at https://<your-domain>/api/stripe/webhook.

CLI deploy from a clone is documented in Cloudflare hosting. Env vars: Environment variables. Payments: Store payments.