---
title: How to Deploy a Preact Site with Vercel
description: Create your Preact app and deploy it with Vercel.
url: /kb/guide/deploying-preact-with-vercel
canonical_url: "https://vercel.com/kb/guide/deploying-preact-with-vercel"
last_updated: 2026-06-16
authors: Lee Robinson
related:
  - /docs/deployments/git/vercel-for-github
  - /docs/deployments/git/vercel-for-gitlab
  - /docs/deployments/git/vercel-for-bitbucket
  - /docs/concepts/deployments/checks
  - /docs/concepts/projects/custom-domains
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

This guide will show you how to deploy a Preact site and get your domain set up.

[React](https://reactjs.org/) is a JavaScript library for building user interfaces, [Preact](https://preactjs.com/) is a fast 3kB alternative to React with the same modern API. There are multiple ways to build a React site, including:

- [Next.js](https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fnextjs&template=nextjs&id=67753070&b=main&from=preact-guide)
  
- [Create React App](https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fcreate-react-app&template=create-react-app&id=67753070&b=main&from=preact-guide)
  
- [Gatsby](https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fgatsby&template=gatsby&id=67753070&b=main&from=preact-guide)
  
- [Remix](https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fremix&template=remix&id=67753070&b=main&from=preact-guide)
  
- [Preact](https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fpreact&template=preact&id=67753070&b=main&from=preact-guide)
  
- [Ionic React](https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fionic-react&template=ionic-react&id=67753070&b=main&from=preact-guide)
  
- [Redwood](https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fredwoodjs&template=redwoodjs&id=67753070&b=main&from=preact-guide)
  

## Deploy Preact to Vercel

Vercel is a platform for deploying the fastest Preact sites. You can deploy your site with zero configuration to the best [frontend infrastructure](https://vercel.com/features/infrastructure).

- **Develop:** Build Preact sites that connect to your favorite APIs, databases, and content management systems.
  
- **Preview:** Integrate with any GitHub, GitLab, or Bitbucket repository for [instant continuous deployment](https://vercel.com/features/previews).
  
- **Ship:** Deploy your site to every edge node worldwide for the fastest Preact sites. Static files, Vercel Functions, the CDN, [and more](https://vercel.com/features/infrastructure).
  
- **Monitor:** Measure Core Web Vitals from actual devices your visitors are using with [Vercel Analytics](https://vercel.com/analytics/web-vitals) for Preact.
  

## Built-in CI/CD for Preact sites

Vercel has integrations for [GitHub](https://vercel.com/docs/deployments/git/vercel-for-github), [GitLab](https://vercel.com/docs/deployments/git/vercel-for-gitlab), and [Bitbucket](https://vercel.com/docs/deployments/git/vercel-for-bitbucket) to enable CI/CD for your Preact site with zero configuration. Then, you can run [automated tests for performance and reliability](https://vercel.com/docs/concepts/deployments/checks) on every push. Pull and merge requests are deployed instantly to a unique URL, accessible to your entire team.

## Add your custom domain

After deploying, your new Preact site will automatically be assigned a `.vercel.app` suffixed domain. You can then add a [Custom Domain](https://vercel.com/docs/concepts/projects/custom-domains) on your choice, either from a third-party or [purchased through Vercel](https://vercel.com/domains).

## Deploy Preact to Vercel

### Start from a template

- [Preact](https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fpreact&template=preact&id=67753070&b=main&from=preact-guide)
  

### Vercel CLI

1. Install the [Vercel CLI](https://vercel.com/cli) and run `vercel` to deploy.
   
2. Vercel will detect that you are using Preact and will enable the correct settings for your deployment.
   
3. Your application is deployed! (e.g. [preact-template.vercel.app](https://preact-template.vercel.app/))
   

### Vercel for Git

1. Push your code to your git repository (GitHub, GitLab, BitBucket).
   
2. [Import your Preact project](https://vercel.com/new) into Vercel.
   
3. Vercel will detect that you are using Preact and will enable the correct settings for your deployment.
   
4. Your application is deployed! (e.g. [preact-template.vercel.app](https://preact-template.vercel.app/))