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.
- What you get
- Separate settings for local, preview and production, and a check that proves which one you’re on.
- Paste it into
- Your AI tool, in your project
The prompt
I want local, preview and production properly separated so I can't damage real data while testing. 1. Show me which database, API keys, payment mode and email sender each environment uses today. Don't print secret values, only which environment each belongs to. 2. List everything that is shared and shouldn't be. 3. Propose the setup: a separate database for development, test-mode keys outside production, and emails that can't reach real customers from a preview. 4. Add one visible signal of which environment is running, for example a line in the server log at startup. Give me the dashboard steps I have to do myself, in order.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.
More in Hosting and deploys
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.
Works on your computer, fails when deployed
The build passes locally, then the host shows a red build error.