Skip to content
By stack3 min read

Nuxt hosting: static generation or SSR on Node.js

Short answer

A Nuxt app deploys in two ways: static generation with nuxi generate produces HTML files you upload to any plan, and a full build with nuxt build produces a Nitro server in the .output folder that needs a Node.js process that stays running. On ArabyHost the full server runs on the AI and developer plans with Node.js 20 or 24 through Passenger, and the static output on every plan.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Choose how to deploy first
  2. Static generation on any plan
  3. The full run on the AI and developer plans
  4. What Nuxt needs in production
  5. Limits to know
  6. On ArabyHost

Nuxt builds on Vue and adds routing and server rendering. That makes the hosting question sharper than for plain Vue: does your site need a server working on every request, or are files generated once enough?

Choose how to deploy first

Way Command Output Plan
Static generation (SSG) npx nuxi generate .output/public/ Any plan
Full run (SSR) npm run build .output/server/index.mjs AI and developer plans

Static generation is enough for informational sites, blogs and landing pages. You need the full run if the project has server routes in the server/ folder, pages that change per visitor, or secret keys that must never reach the browser.

Static generation on any plan

  1. On your computer run npm ci, then npx nuxi generate.
  2. Upload the contents of .output/public/ to public_html with the file manager in cPanel.
  3. Open the domain and try an inner link directly.

Every page is generated as its own HTML file, so inner links open with no rewrite rules. If you see a blank page, the usual cause is uploading the folder itself instead of its contents; the fix is on blank page after deploy.

The full run on the AI and developer plans

  1. Build on your computer: npm ci, then npm run build. It produces the self-contained .output/ folder.
  2. Upload .output/ to a folder outside public_html, such as /home/USER/nuxtapp.
  3. Add a startup file next to it called app.cjs, with one line:
import("./.output/server/index.mjs");
  1. Create the app: from Software, then Setup Node.js App, click Create Application, choose Node.js 24, and set Application root to nuxtapp and Application startup file to app.cjs.
  2. Add the variables starting with NUXT_ under Environment variables, then click Restart.

Passenger sets the port itself, so do not write a port number in the settings. If an error page appears instead of the site, the real cause is in the app log: see Passenger app error and Node.js app returns 503. Running Node.js apps in general is covered in this guide.

What Nuxt needs in production

  • A recent Node.js: we offer 20 and 24.
  • Database: MySQL/MariaDB on the same account. Services such as Supabase work if the app talks to them through their library over HTTPS.
  • Environment variables: from the app screen in cPanel, as in the environment variables guide.
  • Images and static files: served directly by LiteSpeed in a static build.

Limits to know

  • The build uses memory that can exceed the account’s limits, so build on your computer or in GitHub Actions and upload the output.
  • Outgoing connections are HTTPS only. A direct connection to an external database port does not work.
  • Passenger may stop the app after a period with no visits, so the first request afterwards is a little slower. Scheduled tasks belong in Cron Jobs, not inside the app.
  • No Docker, no root access and no serverless functions.

On ArabyHost

Static generation runs on every plan, with a free automatic SSL certificate and daily backups. The full run works on the AI and developer plans through Passenger, with SSH, Git and deploys from GitHub, and the Araby AI assistant reads the error log and explains it. If your project is Vue without Nuxt, see Vue hosting.

Prices are shown in your currency on the pricing page, and the renewal price is the price you signed up at.

FAQ

Does Nuxt run on ordinary shared hosting?

It does if you generate it statically with nuxi generate: the output is HTML and JavaScript files that need no Node.js on the server. If it relies on SSR or on server routes in the server folder, it needs a plan that runs Node.js.

What do I upload after nuxt build?

The .output folder only. It is self-contained, with the server and the packages it needs, so you do not upload node_modules or the whole project folder.

How do I set environment variables for Nuxt on hosting?

runtimeConfig values are read at run time from variables starting with NUXT_, and the public ones start with NUXT_PUBLIC_. Add them under Environment variables when creating the app in cPanel, then restart it.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.