Deploy a Static Site to Cloudflare Pages Using Micropage
Micropage turns page markup into a deployed static site.
Under the hood, the publishing flow is based on builds and deployment to Cloudflare Pages.
The basic pipeline
At a high level:
- write page markup
- save or push content
- Micropage parses the markup and creates a build
- the build generates static output
- the static output is deployed to Cloudflare Pages
Web App flow
In the Web App:
- open a project
- edit content in the editor
- click Save to create a draft build (the live site does not change)
- click Publish to deploy the current markup
The app handles the build and deploy workflow for you.
CLI flow
From the CLI:
micropage push
micropage publish
Use push to save a draft build without deploying.
Use publish to build and deploy immediately.
Why builds matter
A build gives you a versioned snapshot of the site. That means you can always know:
- what is currently live
- what is still a draft
- whether you can redeploy an older version
Redeploying a previous version
If needed, you can redeploy an older build:
micropage builds redeploy 3
This is useful when you need to roll back to an earlier version without editing content again.
You can also redeploy from the Builds tab in the Web App.
Why Cloudflare Pages is a good fit
The final output is static:
- fast to load globally
- easy to cache at the edge
- no server to maintain
Custom domains
By default, your site is available at a .pages.dev URL. You can connect your own domain using a CNAME record.
See Custom Domains for setup instructions.
Next steps
If deployment makes sense, the next useful concepts are: