How do I deploy this?
Import the repository into Vercel and accept the detected settings. It builds and serves with no configuration and no environment variables.
Steps
- In Vercel, choose Add New → Project and import the repo.
- Accept the auto-detected settings. Vercel recognises Astro and installs with pnpm.
- Add no environment variables. The placeholder build needs none.
- Deploy.
If it doesn't work
- The build fails saying an adapter is missing
-
Something set
output: 'server'inastro.config.mjs. Static output needs no adapter; server output needs@astrojs/vercelas well. - The build fails during install
-
Check
pnpm-workspace.yamlexists. pnpm blocks dependency build scripts by default and fails the install until they're approved there. - It deploys but a page 404s
- Only routes under
src/pages/are built. Check the file is there. - The build fails with a Node version error
-
The project requires Node 22+. Vercel reads the
.node-versionfile to pick the right version automatically. If the file was deleted, recreate it with just22on the first line.
Still stuck? Reply to this article's link and include the build log.
Didn't answer your question? Browse all articles.