Despliega tu app de Astro
Astro ships static HTML by default — you only reach for a server adapter if you opt into one. For a default project, npm run build is already producing exactly what this host wants.
- 01
Build the site
Run "npm run build" (or "astro build" directly). Astro pre-renders every page to static HTML in a "dist" folder, plus a hashed, cacheable "_astro" assets folder.
- 02
Confirm you haven't added a server adapter
If astro.config.mjs sets "output: 'server'" or "'hybrid'" with an adapter (Node, Vercel, Cloudflare…), some routes render on request and won't exist as files. The default, adapter-free config is fully static.
- 03
Despliégalo
Ejecuta "npx harvis deploy dist" desde la raíz de tu proyecto. Sin configuración y sin iniciar sesión para este primer despliegue — consigues una URL en vivo al instante, más un enlace privado de reclamación para vincular el sitio a una cuenta gratuita cuando quieras.
Despliega Astro con un comando
Compila tu proyecto y entrégale la carpeta de salida a harvis. No hace falta cuenta para este primer despliegue — consigues un enlace en vivo y un enlace privado de reclamación para gestionarlo más tarde.
npm run build npx harvis deploy dist
¿Prefieres arrastrar archivos en vez de usar una terminal? Compila el proyecto y suelta la carpeta de salida aquí para publicarla igual.
Preguntas sobre desplegar Astro
I'm using Astro islands with React or Vue components. Does that still work?
Yes — islands hydrate in the browser after the static HTML loads, so they don't need a server at request time. The framework code ships as regular JavaScript in the dist folder like any other asset.
What if I need server-rendered routes for one page?
Static hosting can't run per-request server code, full stop. Either keep that route external (calling your own API from client-side JS is fine) or split it out and host it somewhere that runs a server — the rest of the Astro site can still live here.
¿Desplegar una app de Astro en harvis es realmente gratis?
Sí, sin tarjeta. Los límites gratuitos son 500 archivos y 50 MB por sitio, de sobra para un build estático de Astro. Los sitios publicados no caducan — siguen en vivo hasta que los elimines.
¿Puedo usar mi propio dominio con el sitio de Astro desplegado?
Cada sitio recibe una dirección harvis.dev gratuita, y puedes elegir tu propio subdominio desde el panel tras reclamarlo — mi-app.harvis.dev en vez de uno aleatorio. Apuntar un dominio que ya tengas (como mitienda.com) al sitio todavía no está disponible.
¿En qué se diferencia esto de desplegar Astro en Vercel o Netlify?
Vercel y Netlify giran en torno a conectar un repositorio Git y ejecutar tu build en sus servidores, con un panel para configurarlo. harvis se salta todo eso: compilas en local (o en tu propio CI), ejecutas un comando de la CLI contra la carpeta de salida y obtienes un enlace — sin configurar un proyecto, y sin necesidad de cuenta hasta que quieras conservar el sitio.
¿Vas a desplegar otra cosa?
La receta es la misma en todas partes — compílalo y luego npx harvis deploy la salida.