Nuxt

I-deploy ang iyong Nuxt app

Nuxt 3's default build target is a Node server, not static files — so the command that gets you a folder of HTML isn't the one in the getting-started guide. generate is the one you want.

steps
  1. 01

    Run generate, not build

    "npm run build" produces a Node server (".output/server"). "npm run generate" pre-renders every route to static HTML instead — that's the one this host needs.

  2. 02

    Find the output folder

    Nuxt 3 writes static output to ".output/public". If you're still on Nuxt 2, "nuxt generate" writes to "dist" instead.

  3. 03

    I-deploy ito

    Patakbuhin ang "npx harvis deploy .output/public" mula sa project root mo. Walang config at walang login para sa unang deploy na ito — agad kang makakakuha ng live URL, kasama ang private na claim link para idugtong ang site sa libreng account kapag handa ka na.

I-deploy ang Nuxt gamit ang isang command

I-build ang project mo, tapos ibigay sa harvis ang output folder. Walang kailangang account para sa unang deploy — makakakuha ka ng live link at private na claim link para pamahalaan ito sa susunod.

terminal
npm run generate
npx harvis deploy .output/public

Mas gusto mong mag-drag ng file kaysa terminal? I-build ang project, tapos i-drop ang output folder dito at i-publish ito sa parehong paraan.

Mga tanong sa pag-deploy ng Nuxt

I ran npm run build by mistake — what changes?

That produced a ".output/server" folder meant to run under Node — it has no index.html and won't serve as static files. Run "npm run generate" instead; it pre-renders the same app to ".output/public".

Do dynamic routes and Nuxt's server API routes work?

Page routes work if Nuxt can enumerate them at generate time (static or with a "nitro.prerender.routes" list for dynamic segments). API routes under "server/api" need a server to run and won't work here — call an external API from the client instead.

Talaga bang libre ang pag-deploy ng Nuxt app sa harvis?

Oo, walang kailangang card. Ang libreng limit ay 500 file at 50 MB kada site, na sapat na sapat para sa static Nuxt build. Hindi nag-e-expire ang mga na-publish na site — mananatili itong live hanggang sa i-delete mo ito.

Puwede ko bang gamitin ang sarili kong domain sa na-deploy na Nuxt site?

Bawat site ay makakakuha ng libreng harvis.dev address, at puwede kang pumili ng sarili mong subdomain mula sa dashboard pagkatapos itong i-claim — my-app.harvis.dev sa halip na random. Ang pagtuturo ng domain na meron ka na (tulad ng mystore.com) papunta sa site ay hindi pa suportado.

Ano ang pagkakaiba nito sa pag-deploy ng Nuxt sa Vercel o Netlify?

Umiikot ang Vercel at Netlify sa pagkonekta ng Git repo at pagpapatakbo ng build mo sa mga server nila, may dashboard para i-configure ito. Nilalaktawan ng harvis ang lahat ng iyon: nagbi-build ka locally (o sa sarili mong CI), nagpapatakbo ng isang CLI command laban sa output folder, at makakakuha ng link — walang project setup, at walang kailangang account hanggang gusto mong panatilihin ang site.

other frameworks

Nag-de-deploy ka ng iba?

Pareho ang proseso kahit saan — i-build ito, tapos npx harvis deploy ang output.