Gatsby

Despliega tu app de Gatsby

Gatsby has been a static-site generator from the start, and gatsby build has written to the same public folder for years. Nothing unusual here — build it, deploy it.

steps
  1. 01

    Build the site

    Run "gatsby build" (or "npm run build", which calls the same thing). Gatsby pre-renders every page and writes optimized static output to "public".

  2. 02

    Skip develop mode

    "gatsby develop" starts a live-reloading dev server on its own port — it's not what produces deployable output. You want "build", not "develop".

  3. 03

    Despliégalo

    Ejecuta "npx harvis deploy public" 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 Gatsby 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.

terminal
gatsby build
npx harvis deploy public

¿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 Gatsby

My Gatsby site pulls data from a CMS. Does that still work after deploying?

Yes, as long as the data fetching happens at build time through Gatsby's GraphQL data layer, which is the normal Gatsby pattern. The page is already fully rendered with that data baked in by the time gatsby build finishes — nothing needs to run at request time.

Do Gatsby's dynamic routes and client-only paths work?

Pages generated via createPages at build time work fine — they're plain files in public. Client-only routes (Reach Router matchPath) render in the browser after the shell loads, and harvis's fallback to your entrypoint HTML handles the direct-visit case.

¿Desplegar una app de Gatsby 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 Gatsby. Los sitios publicados no caducan — siguen en vivo hasta que los elimines.

¿Puedo usar mi propio dominio con el sitio de Gatsby 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 Gatsby 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.

other frameworks

¿Vas a desplegar otra cosa?

La receta es la misma en todas partes — compílalo y luego npx harvis deploy la salida.