---
title: "Deploy To Netlify"
description: "How to deploy web sites and web apps built with LaunchFast starter kits to Netlify?"
source: "https://www.launchfa.st/documentation/deployment/netlify"
---

> **Site index for agents**
> Fetch https://www.launchfa.st/llms.txt to discover every page on this site.
> Every page is also available as Markdown by appending `.md` to its URL.

import { Steps } from '@astrojs/starlight/components'

<Steps>

1. Deploy to [Netlify](https://netlify.com) with the following:
    
    ```bash
    npm run build && netlify build && netlify deploy --prod
    ```
    
    If you do not have an existing Netlify project, this command will help you set up one.

2. Next, set all the environment variables in your Netlify's project `Settings` > `Environment Variables` from your local `.env` file.

3. Finally, deploy to Netlify (again) with the following:
    
    ```bash
    npm run build && netlify build && netlify deploy --prod
    ```

4. Now that's set up, you can deploy in future iterations only by executing the command once.

</Steps>
