Deployment
Deploy your app to production with a single command:
every app deployWhat Happens
Running this command will:
- Build your code - Compiles your TanStack Start app for Cloudflare Workers
- Create resources - Creates your D1 Database or KV Store if they don’t already exist
- Run migrations - Executes any pending database migrations
- Deploy to Workers - Uploads your code to Cloudflare’s edge network
Updating Your App
Just run the same command again:
every app deployYour database data is preserved - only the code is updated.
Manual Deployment
If you prefer more control, you can use Wrangler directly:
# Build and deploypnpm run deploy
# Or step by step:pnpm run buildnpx wrangler deployEnvironment 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:
npx wrangler secret put MY_SECRET