Skip to content

Deployment

Deploy your app to production with a single command:

Terminal window
every app deploy

What Happens

Running this command will:

  1. Build your code - Compiles your TanStack Start app for Cloudflare Workers
  2. Create resources - Creates your D1 Database or KV Store if they don’t already exist
  3. Run migrations - Executes any pending database migrations
  4. Deploy to Workers - Uploads your code to Cloudflare’s edge network

Updating Your App

Just run the same command again:

Terminal window
every app deploy

Your database data is preserved - only the code is updated.

Manual Deployment

If you prefer more control, you can use Wrangler directly:

Terminal window
# Build and deploy
pnpm run deploy
# Or step by step:
pnpm run build
npx wrangler deploy

Environment Variables

Production environment variables are set in your wrangler.jsonc:

{
"vars": {
"GATEWAY_URL": "https://your-gateway.your-subdomain.workers.dev",
},
}

For secrets (like API keys), use Wrangler:

Terminal window
npx wrangler secret put MY_SECRET