Belum ada versi bahasa Melayu, jadi dipaparkan dalam bahasa Inggeris.

How to deploy a Docusaurus site for free, from its build folder

Quick answer

To deploy a Docusaurus site for free, run npm run build and drop the build folder it writes on Convika's upload screen. Convika serves it at its own address, such as my-docs.convika.page, so baseUrl stays '/', every doc and blog post opens at its own path, and your 404 page answers missing ones. Sign up free, with no credit card and no Git.

Deploy my docs for free

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

On this page

To deploy a Docusaurus site for free, run npm run build and drop the build folder it writes on Convika's upload screen. Convika serves the folder as a site at its own address, such as my-docs.convika.page, so baseUrl stays '/': /docs/intro opens the intro doc, the JavaScript chunks load from /assets/js/, and a missing page gets your 404.html. No Git, no server, and no credit card.

What to build, and the folder to drop

Docusaurus renders every doc, blog post, and page to its own HTML file, with the JavaScript that makes the site interactive beside them. The build folder is the whole site, and it is the only thing you upload.

Your projectBuild commandFolder to drop
Docusaurus with npmnpm run buildbuild
Docusaurus with Yarn or pnpmyarn build or pnpm run buildbuild

Keep baseUrl '/', set url to your Convika address

Your site opens at the root of its own address, so baseUrl: '/', the value create-docusaurus writes, is right. Set url to the address your site will have, so the canonical links and the sitemap name it:

// docusaurus.config.js
export default {
  url: 'https://my-docs.convika.page',
  baseUrl: '/',
  // ...the rest of your config
};

Pick the name now and type the same one in Site URL on the upload screen. The field says "my-docs.convika.page is available." before anything goes up. trailingSlash can stay at its default.

Deploy a Docusaurus site in 5 steps

1. Build the site

In the project folder, run:

npm install
npm run build

Docusaurus prints "Generated static files in "build"." when it is done.

2. Sign up free

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

3. Drop the build folder

Drop build on Drop a file or folder here, or click Choose a folder. A .zip of the folder works too. Convika reads it in your browser and shows "Uploads as a site" with the number of files. Under Site URL, type the name you set as url. Click Create my preview.

4. Check the private preview

Convika uploads the files and opens a private preview of the whole site. Open a doc from the sidebar, reload it, switch the dark mode, and try a path that doesn't exist.

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 docs are live at my-docs.convika.page.

Every doc at its own path, on reload too

Docusaurus writes docs/intro.md to build/docs/intro/index.html. A click in the sidebar moves to /docs/intro in the browser. A reload asks Convika for /docs/intro, which adds the slash and answers /docs/intro/ with that file, so every doc opens straight from a link or a bookmark. The chunks in build/assets/js/ load from their own paths as the reader moves through the site.

A path the site doesn't have gets the 404.html Docusaurus builds, with a 404 status.

Update the docs at the same address

Edit the docs and run npm run build again. In Convika, open the site's page screen. Under Update from an HTML file, click Upload a new version and drop the new build folder, or its .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 path of the docs, for an internal handbook or a client's docs. Every page counts its readers in your dashboard.

Frequently asked questions

How do I deploy a Docusaurus site for free?

Set url to https://<name>.convika.page and keep baseUrl: '/', run npm run build, then sign up free on Convika and drop the build folder on the upload screen. Type the same name in Site URL, click Create my preview, and publish with Publish page, Public, Next, and Publish free.

What should baseUrl be?

'/'. Convika serves the site at the root of its own address, <name>.convika.page, so no path prefix is needed.

Why does a doc open on reload?

Each doc is its own file in build, such as docs/intro/index.html, and Convika answers /docs/intro with it after adding the slash.

Does my 404 page work?

Yes. A path the site doesn't have gets build/404.html with a 404 status.

Do I need Git or GitHub?

No. Drop the folder or a .zip straight from your computer. Nothing to push, and no deploy command to configure.

How large can a Docusaurus site be?

Each HTML page up to 4 MB, and all of the site's files together up to 100 MB on Free, or 5 GB on Pro.

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 Docusaurus docs, live at their own address

Drop the build folder. Convika serves every doc at its path, counts readers, and keeps the address when you upload a new build.

Deploy my docs for free

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