Convika

این صفحه هنوز به فارسی نیست و به انگلیسی نمایش داده می‌شود.

How to deploy a Nuxt site for free, from nuxt generate

Quick answer

To deploy a Nuxt site for free, run npx nuxt generate and drop the public folder inside .output on Convika's upload screen. Convika serves it at its own address, such as my-app.convika.page, with every prerendered route at its own path and Nuxt's 404.html starting the app for any other route. Sign up free, with no credit card and no Git.

Deploy my Nuxt site for free

Free plan: no credit card, 5 published pages, 10,000 page views a month.

On this page

To deploy a Nuxt site for free, run npx nuxt generate and drop the public folder inside .output on Convika's upload screen. Convika serves it as a site at its own address, such as my-app.convika.page: each prerendered route opens its own HTML file, the _nuxt chunks load from their own paths, and any other route gets Nuxt's 404.html, which starts the app. No Git, no server, and no credit card.

What to build, and the folder to drop

nuxt generate prerenders every route of your app to HTML and writes the site, with its JavaScript, to .output/public. That folder is the whole site, and it is the only thing you upload.

Your projectBuild commandFolder to drop
Nuxt 3 or 4npx nuxt generate (or npm run generate).output/public
Nuxt with ssr: falsenpx nuxt generate.output/public

Drop the public folder, not .output

Drop public itself. A name that starts with a dot is hidden, and Convika never puts hidden files or folders on a site, so a drop of .output shows "No .html file found."

On a Mac, Finder hides .output: press Command, Shift, and the period key in the project folder to show it. Or make a .zip of the folder from the terminal and drop that:

cd .output/public && zip -r ../../site.zip . && cd ../..

Deploy a Nuxt site in 5 steps

1. Generate the site

In the project folder, run:

npm install
npx nuxt generate

Nuxt prerenders each route it finds from your links and lists them, and .output/public holds the site.

2. Sign up free

Sign up free, with no credit card. Convika opens the upload screen, Put your page or file online.

3. Drop .output/public

Drop the public folder from .output, or site.zip, on Drop a file or folder here, or click Choose a folder. Convika reads it in your browser and shows "Uploads as a site" with the number of files. Under Site URL, Convika offers a free name such as my-app.convika.page; type another to check it. Click Create my preview.

4. Check the private preview

Convika uploads the files and opens a private preview of the whole site. Click through the routes, reload one, and open a route with a parameter, on your computer and your phone.

5. Publish it

Click Publish page. Under Who can open this page?, choose Public and click Next. The first time, Convika shows Publish free, and under it Publish without the Convika bar, which starts Pro with its free trial: 7 days free, then $12 a month, cancel any time before it ends. To publish on Free, click Publish free. The site is live at my-app.convika.page.

Every route opens, on reload too

Nuxt writes a prerendered route such as /about to .output/public/about/index.html, with its data in a _payload.json beside it. Convika answers /about/ with that file, and /about gets the slash added first. Nuxt also writes 200.html and 404.html, the single-page app fallbacks. A route Nuxt didn't prerender, such as /users/42, gets 404.html, which loads the app, and the app's router shows the route.

Update the site at the same address

Run npx nuxt generate again. In Convika, open the site's page screen. Under Update from an HTML file, click Upload a new version and drop the new public folder, or a new site.zip. Click Upload as a new version, open the preview, then click Publish v2 at the same link and confirm with Publish. The address stays the same, and each earlier version keeps its own files, so you can go back to one.

What Free includes, and what Pro adds

FreePro
PriceNo credit card7 days free, then $12 a month
Sites live at once5100
Page views a month10,000100,000
A site's files together100 MB5 GB
Each HTML page4 MB4 MB
Who can open itPublicPublic, Private link, or Only people with the password
Convika barOn each pageNone

A password or a private link covers every route of the site. Every page counts its visitors in your dashboard: where they came from and what they clicked.

Frequently asked questions

How do I deploy a Nuxt site for free?

Run npx nuxt generate, then sign up free on Convika and drop the public folder inside .output on the upload screen. Click Create my preview, and publish with Publish page, Public, Next, and Publish free. The Free plan needs no credit card.

Which folder do I upload?

.output/public: drop the public folder itself, or a .zip of what is inside it.

Why does Convika say no .html file was found?

The drop was .output. Convika leaves out every file and folder whose name starts with a dot, so it finds no page there. Drop the public folder inside .output.

Does a route that wasn't prerendered work?

Yes. Convika answers it with Nuxt's 404.html, which loads the app, and Nuxt's router shows the route.

Do I need nuxt build or a Node server?

No. nuxt generate makes plain files, and Convika serves them. Nothing runs on a server.

Do I need Git or GitHub?

No. Drop the folder or a .zip straight from your computer. Nothing to push.

Next step

How to password protect an HTML page or website

A JavaScript password sits in the page source. Free: StatiCrypt or .htaccess. Paid: Netlify Pro $20, Vercel $20 a project, Tiiny Host $18, or Convika Pro.

Related articles

More ways to send your page

Skipbox

Cheap & fast GitHub Actions runners, unlimited for $39 a month

Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.

Start a free Skipbox trial⁠

Share this article

Your Nuxt site, live at its own address

Drop .output/public. Convika serves every route at its path, counts visitors, and keeps the address when you upload a new build.

Deploy my Nuxt site for free

Free plan: no credit card, 5 published pages, 10,000 page views a month.