# Stop building straight on the live site

> Every change goes to main and straight to production, tested by your users.

Web page: https://buildladder.com/resources/prompts/branch-and-preview

What you get: A simple routine: a branch per change, a preview link, then merge.

Paste it into: Your AI tool, in your project

## Prompt to copy

```text
Right now I push every change straight to the live site. Set me up with a safer routine that's still simple for one person.

Look at how this project deploys. Then set it up so the main branch always matches what's live, each change happens on its own short-lived branch, the host builds a preview link for that branch, and I merge only after checking the preview. Add a check that runs the build, lint and tests before a merge, if the repository host offers that for free.

Write the routine as six lines in the README with the exact commands. Tell me the settings to switch on in my host and repository dashboards.
```
