Deploy
Put your site online in a few minutes with Vercel or Netlify, straight from the repository Alloy pushed for you.
Vercel
- Push the project with Manage Git.
- In Vercel, click Add New → Project and import the repository.
- Framework preset: Vite. Build command
npm run build, output directorydist. - Add environment variables if your app has an
.env.example. - Click Deploy. Every merge into
maindeploys again automatically.
Netlify
- In Netlify, click Add new site → Import an existing project and pick your Git provider.
- Build command
npm run build, publish directorydist. - Click Deploy site.
Single-page apps need every path to load index.html. Add this file so links like /about work after a refresh:
public/_redirects (Netlify)
/* /index.html 200vercel.json (Vercel)
{
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}Custom domain
Both hosts let you add your own domain under the project's Domains settings. Point your DNS to the records they show (usually an A record for the root and a CNAME for www). HTTPS is set up automatically.