Hosting and deploys
Requests time out in production
A slow request finishes locally but gets cut off on the host.
- What you get
- The slow work found and either made faster, streamed, or moved to the background.
- Paste it into
- Your AI tool, in your project
The prompt
Some requests work locally but time out or get cut off on my host. Find the routes that can run long: calls to AI models, big database queries, file processing, loops over outside APIs. For each, estimate how long it takes and compare that with my host's time limit on this plan. Tell me the limit and link the doc. For every route over the limit, propose the simplest fix that fits: make the work faster, stream the response, or move it to a background job and show progress. Wait for my OK before restructuring anything, and tell me how to measure the result.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.
More in Hosting and deploys
Keep test data out of your real database
Preview deploys and local testing talk to the same database and keys as the live site.
Have a way back before you ship
A bad deploy goes out and you don’t know how to undo it.
A scheduled job doesn’t run on the live site
The daily task works when you trigger it by hand and never fires in production.
Stop a surprise hosting bill
A free plan turns into a big invoice after a traffic spike or a bot.