# Preview changes

A [preview](/docs/concepts/project-lifecycle.md#preview-environment) runs your project as it is now, so you can look at a change before you publish it.

## Before you start

You need a project with a change in it. See [Edit files](/docs/projects/files.md).

## Open the preview

**Code**

1. In your project's folder (see [Work locally](/docs/projects/local.md)), start it:

```bash
npx veryfront@latest dev
```

2. Open the address it prints, usually [localhost:3000](http://localhost:3000). You should now see your change on the page, such as the "Support desk" heading.

3. To share the project's preview, push it to the cloud. You should now see a `Preview:` address, such as `https://support-desk.preview.veryfront.com`:

```bash
npx veryfront push
```

### Try it in a sandbox

```playground
step: The project the page assumes | npm create -y veryfront@latest support-desk -- --template minimal --yes && cd support-desk
step: Change the heading | sed -i 's/Welcome to Veryfront/Support desk/' app/page.tsx
step: Start it | PORT=3100 nohup npx veryfront@latest dev > dev.log 2>&1 &
step: Open it | sleep 45; curl -s localhost:3100 | grep -o "Support desk"
check: npx veryfront push --yes
expect: Preview:
```

### Troubleshooting

**If the preview address sends you to sign in**, its environment is protected. Open it signed in to Veryfront with an account that is a member of the project.

**Studio**

1. Open **Preview**.
2. Click **Viewport**.
3. Choose **Mobile**.
4. Look at the frame. You should now see it narrow to a phone's width.

## Next steps

* [Publish](/docs/deployment/publish.md)
* [Create a branch](/docs/projects/create-branch.md)
