# Deploy order

Some changes need a step in Velora and a deploy of your front end. Their order matters.

## First launch

1. **Copy the three values** (delivery URL, read key, webhook secret) from **Publication**, **Overview** into your front end's environment, for production and previews ([Connect](https://developers.velora.build/connect.md)).
2. **Keep your own routes.** In **Publication**, **Article addresses**, **Kept for your front end**, list every path your front end serves itself ([Routing](https://developers.velora.build/routing.md#addresses-kept-for-your-front-end)).
3. **Deploy the front end.** It renders straight from the API; nothing in Velora has to point at it yet.
4. **Point Velora at it.** Set the **Revalidate URL** and **Preview URL** (Overview, **Edit in CMS settings**). Velora starts sending the webhook, the Preview button appears, and Velora reads your [block list](https://developers.velora.build/bodies.md#your-own-blocks).
5. **Check it.** Publish a change to an article in Velora and watch the page update within seconds. Press Preview on a draft.

When the site moves to its own domain, update both URLs in Velora.

## A new route of your own

1. Add its path to **Kept for your front end**. Velora refuses if content already lives there; move that content first.
2. Deploy the route.

The other way round, content could be given the address between the deploy and the setting, and your route would hide it.

## A new block

1. Define the block in your list and deploy its component with it.
2. Let Velora read the list: the [deploy ping](https://developers.velora.build/bodies.md#tell-velora-it-changed), or Refresh in **Skills**, **Components**.
3. Switch the block on in **Skills**, **Components**, and say when the writer should use it.

The writer can only place a block once your front end can draw it.

## Removing a block

1. Switch it off in Velora, so no new article uses it.
2. Remove it from your list. Velora then refuses to publish an article that still holds it.
3. Keep rendering it, or a plain fallback, for as long as published articles hold it.

## Rotating a key or secret

Replacing the read key or the webhook secret in Velora stops the old one within a minute (cached answers for an old read key can be served for up to an hour). Update your front end's environment and redeploy straight after. Until then, reads answer 404, or webhooks and preview links fail their signature check.
