How to deploy an Astro site for free, from its dist folder
Quick answer
To deploy an Astro site for free, run npm run build and drop the dist folder it writes on Convika's upload screen. Convika serves it at its own address, such as my-site.convika.page, with every page at its own path, island scripts loading from _astro, and your 404.html for missing pages. Sign up free, with no credit card and no Git.
Free plan: no credit card, 5 published pages, 10,000 page views a month.
On this page
To deploy an Astro site for free, run npm run build and drop the dist folder it writes on Convika's upload screen. Convika serves the folder as a site at its own address, such as my-site.convika.page: /blog/first-post/ opens its own HTML file, the island scripts and CSS load from /_astro/, and a missing page gets your 404.html. No Git, no server, and no credit card.
What to build, and the folder to drop
Astro's default output is 'static': every page is prerendered to HTML, and astro build writes the site to dist. That folder is the whole site, and it is the only thing you upload.
| Your project | Build command | Folder to drop |
|---|---|---|
| Astro, static output (the default) | npm run build | dist |
| Astro, with the CLI | astro build | dist |
| Starlight docs | npm run build | dist |
If astro.config.mjs sets outDir, drop that folder instead.
Keep base, set site to your Convika address
The site opens at the root of its own address, so leave base out of astro.config.mjs. Set site to your Convika address: Astro uses it for the sitemap and the canonical URLs.
// astro.config.mjs
import { defineConfig } from "astro/config";
export default defineConfig({
site: "https://my-site.convika.page",
});
Pick the name now and type the same one in Site URL on the upload screen. The field says "my-site.convika.page is available." before anything goes up.
Deploy an Astro site in 5 steps
1. Build the site
In the project folder, run:
npm install
npm run build
Astro lists each page it built and ends with "Complete!", and dist 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 the dist folder
Drop dist 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 site. 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 pages, use an interactive island, and try a path that doesn't exist, 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-site.convika.page.
Every page at its own path
With Astro's default build.format of 'directory', src/pages/about.astro becomes dist/about/index.html. Convika answers /about/ with that file, and /about gets the slash added first. The scripts of your React, Vue, or Svelte islands, the CSS, and the optimized images in dist/_astro/ load from their own paths.
A path the site doesn't have gets dist/404.html, with a 404 status. Astro builds it from src/pages/404.astro or 404.md.
Update the site at the same address
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 dist 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
| Free | Pro | |
|---|---|---|
| Price | No credit card | 7 days free, then $12 a month |
| Sites live at once | 5 | 100 |
| Page views a month | 10,000 | 100,000 |
| A site's files together | 100 MB | 5 GB |
| Each HTML page | 4 MB | 4 MB |
| Who can open it | Public | Public, Private link, or Only people with the password |
| Convika bar | On each page | None |
A password or a private link covers every path 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 an Astro site for free?
Run npm run build, then sign up free on Convika and drop the dist folder 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.
Do I need an adapter?
No. Astro's default static output needs none: astro build writes plain files to dist, and Convika serves them.
Do I need to set base?
No. The site opens at the root of <name>.convika.page, so leave base out. Set site to that address for the sitemap and canonical URLs.
Does a Starlight docs site work?
Yes. Starlight builds to dist like any Astro site, and its search index loads from its own path.
Does my 404 page work?
Yes. src/pages/404.astro builds to dist/404.html, and Convika answers every path the site doesn't have with it, with a 404 status.
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
- How to deploy a Hugo site for free, from its public folderDeploy a Hugo site free: run hugo, drop the public folder on Convika, and get a live site at its own address. Every page at its path, your 404 page, no Git.
- How to deploy an Eleventy site for free, from its _site folderDeploy an Eleventy (11ty) site free: run npx @11ty/eleventy, drop the _site folder on Convika, and get a live site at its own address. No Git, no card.
- How to deploy a Next.js static export for free, from the out folderDeploy a Next.js static export free: set output: 'export', run next build, drop the out folder on Convika, and get a live site at its own address. No card.
- How to deploy a Svelte or SvelteKit app for freeDeploy a Svelte app free: build it, drop the dist or build folder on Convika, and get a live link. The SvelteKit adapter-static settings inside. No Git, no card.
- ZIP to website: upload a .zip file and get a link that opens as a pageDrop a .zip with index.html, CSS, JavaScript, and images here and get a link in seconds, free. A whole site or a built app goes up as a site at its own address.
- How to host a website: the free way, step by stepPut your site's files on a host and point your domain at it. 3 ways compared, then the free route: upload to Convika, publish, and connect your own domain.
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