Configuration
Build Configuration
Section titled “Build Configuration”Statichost looks for a statichost.yml file in the root of your deployment branch.
Configuration File
Section titled “Configuration File”The statichost.yml file controls how your site is built and served. Here’s an example:
Configuration Options
Section titled “Configuration Options”image: The container image used for building your site (e.g.,node:24,python:3.12,alpine:latest)command: The build command to execute (e.g.,npm run build,hugo,mkdocs build)public: The directory containing the final static files to serve
Example Configurations
Section titled “Example Configurations”Static HTML Site
Section titled “Static HTML Site”Node.js/React/Vue Site
Section titled “Node.js/React/Vue Site”Hugo Site
Section titled “Hugo Site”MkDocs Site
Section titled “MkDocs Site”Changing the Pages Branch
Section titled “Changing the Pages Branch”You can change which branch is used for hosting your site:
-
Go to your repository’s Settings
-
Navigate to the Pages section
-
Select a different branch from the dropdown
-
Click Save
The site will be redeployed from the new branch automatically.
Custom Domains
Section titled “Custom Domains”To use a custom domain, you need to configure DNS and then add the domain in CodeFloe.
-
Configure your DNS
Section titled “Configure your DNS”Create a CNAME entry in your DNS control panel pointing your desired subdomain to:
For example, if your username is
techuserand your repository ismyproject, create a CNAME record pointing to:The “name” of the CNAME should be your desired subdomain.
-
Add the domain in CodeFloe
Section titled “Add the domain in CodeFloe”-
Go to your repository’s Pages settings
-
Add your custom domain in the Domains section
-
Set it as the primary domain
-
The primary domain is required. Additional domains can be added as aliases.
Next Steps
Section titled “Next Steps”- Technical Details - Learn about infrastructure and usage limits
- statichost.eu Documentation - Official statichost documentation