Hosting
Learn how to deploy your template to Vercel, Netlify, or Cloudflare Pages.
Every template — Next.js and Astro — has been tested and verified on the three platforms below. Pick the one that fits your workflow.
Prerequisites
Before deploying, ensure you have:
- A GitHub account
- An account on your chosen hosting provider
- Your project pushed to a GitHub repository
- All environment variables set up locally
Next.js
Vercel
Vercel is built by the creators of Next.js and offers the most streamlined deployment experience.
- Go to vercel.com/new
- Import your GitHub repository
- Configure your project:
- Framework Preset: Next.js
- Root Directory:
./ - Build Command:
next build - Output Directory:
.next
- Add your environment variables
- Click Deploy
Netlify
- Go to app.netlify.com/start
- Connect your GitHub repository
- Configure your project:
- Build Command:
next build - Publish Directory:
.next
- Build Command:
- Add your environment variables
- Click Deploy site
Netlify automatically detects Next.js projects and applies the correct build plugin.
Cloudflare Pages
- Go to dash.cloudflare.com → Workers & Pages → Create application → Pages
- Connect your GitHub repository
- Configure your project:
- Framework Preset: Next.js (Static)
- Build Command:
next build - Build output directory:
.next
- Add your environment variables
- Click Save and Deploy
For full server-side rendering on Cloudflare, use the
@opennextjs/cloudflareadapter. Static export works out of the box.
Astro
All Astro templates ship on Astro 6 with tested deployment paths for the platforms below.
Vercel
- Go to vercel.com/new
- Import your GitHub repository
- Configure your project:
- Framework Preset: Astro
- Root Directory:
./
- Add your environment variables
- Click Deploy
Vercel auto-detects Astro projects. No additional adapter is needed for static output; for SSR, add the
@astrojs/verceladapter.
Netlify
- Go to app.netlify.com/start
- Connect your GitHub repository
- Configure your project:
- Build Command:
npm run build - Publish Directory:
dist
- Build Command:
- Add your environment variables
- Click Deploy site
For SSR, add the
@astrojs/netlifyadapter.
Cloudflare Pages
- Go to dash.cloudflare.com → Workers & Pages → Create application → Pages
- Connect your GitHub repository
- Configure your project:
- Framework Preset: Astro
- Build Command:
npm run build - Build output directory:
dist
- Add your environment variables
- Click Save and Deploy
For SSR, add the
@astrojs/cloudflareadapter.