Contents
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
- On your computer run
npm ci, thennpx nuxi generate. - Upload the contents of
.output/public/topublic_htmlwith the file manager in cPanel. - 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
- Build on your computer:
npm ci, thennpm run build. It produces the self-contained.output/folder. - Upload
.output/to a folder outsidepublic_html, such as/home/USER/nuxtapp. - Add a startup file next to it called
app.cjs, with one line:
import("./.output/server/index.mjs");
- Create the app: from Software, then Setup Node.js App, click Create Application, choose Node.js 24, and set Application root to
nuxtappand Application startup file toapp.cjs. - 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.