Static Site Publishing
Last updated:2026-11-25
Beyond running dynamically, a site can also be exported as pure static files and published to any hosting of your choice.
When Static Export Makes Sense
- Content doesn’t change often (corporate sites, product showcase sites).
- You want maximum access speed and lower server costs.
- You want to host on object storage, CDN, or third-party hosting (e.g. EdgeOne, COS, GitHub Pages).
Supported Publish Targets
The publish page supports adding multiple targets, each choosing “which file categories it handles”:
- HTML pages (including protocol files such as robots.txt / sitemap.xml)
- Theme static assets (css / js / images / fonts)
- Attachments (images and files uploaded via the admin panel)
So combinations like “HTML on a filing-free overseas host, attachments domestic to save money” can be configured directly — no code changes.
| Target Type | Best For | What to Prepare |
|---|---|---|
| FTP | Traditional shared hosting | Host, port, username, password, remote directory |
| Tencent Cloud COS | Domestic object storage (for attachments) | SecretId / SecretKey / Bucket / Region |
| S3-compatible storage | AWS S3 / MinIO / Qiniu — any S3 endpoint | Endpoint / Bucket / Region / AK / SK |
| Cloudflare R2 | Overseas object storage, no egress fees | S3 Endpoint / Bucket / AK / SK |
| Cloudflare Pages | Filing-free overseas hosting | Account ID / project name / API Token |
| Netlify | Filing-free overseas hosting | Site ID / Access Token |
| GitHub Pages | Filing-free overseas hosting | Repo / branch / Token |
| WebDAV | Jianguoyun / Synology NAS / Nextcloud / AList | WebDAV URL, username, password |
There are also two separate publish channels — EdgeOne (edge acceleration) and Git repository (with CI for auto deployment) — on the same publish page. All targets support “test connection” — a read-only probe that never writes any files.
Things to Watch When Exporting
Configure the site domain first. The exporter generates canonical, hreflang, og:url, and sitemap based on the domain configured for the site; if the domain is empty, the generated absolute addresses become internal addresses — effectively baking wrong URLs into every page at launch. - Include the companion files: robots.txt, sitemap.xml, llms.txt and the like must be published together, otherwise you’ve effectively skipped SEO. - Keep the failure list: The export logs links it couldn’t fetch — that’s your dead-link ledger; fix them before launch. - Re-export after updates: Static sites don’t sync automatically; re-export once after changing content.
Dynamic vs Static Sites
| Aspect | Dynamic Site | Static Site |
|---|---|---|
| Content updates | Effective immediately after editing in the panel | Requires re-export and republish |
| Interactive features | Forms, search, and more supported | Search is built in: the export auto-generates search-index.json + search.html, so pure static sites can search (effective after enabling “site-wide search”); forms / inquiries need external services |
| Access speed | Good | Excellent |
| Operating cost | Requires a running service | Just hosting |
Next step: Not sure which to pick? Launch with a dynamic site first, then consider static export once things are stable.
CloudSite SaaS