A hosted "Pages" functionality like GitHub Pages, GitLab Pages or Codeberg Pages is not yet available.
When starting out, we thought about hosting pages-server
(the software behind Codeberg pages) ourselves and providing it to users. However, the current state of pages-server
is unclear (as it is in maintenance mode since some months) and the announced rewrite hasn't been going anywhere lately.
Info
If you're eager to work on a (new) self-hostable Pages implementation (or a rewrite of the existing Codeberg Pages one), open a thread in the Forum with additional details!
Statichost.eu
For the time being, we recommend to use statichost.eu. It is a GDPR-compliant, semi-automated service which can deploy both static html and source files in Forgejo-based Git repositories. As of today, 10 GB in traffic/month are free, which should be enough for 99% of all static-website use cases.
The easiest way is to publish your static HTML output to a branch of your repo and let it be served by statichost.
Tip
To enable rebuilds when content of the branch changes, you must set up webhook triggers once in the specific CodeFloe repo. This trigger notifies statichost to rebuild your site.
Tip
If you only want statichost to serve your static HTML (i.e. you've built it before yourself), you can use any image (e.g. alpine
) and any "build command" (e.g. echo "Deploy"
) to have an instant deployment/rebuild of your static website content.