Documentation navigation
Anybuild documentation

Static Sites

An overview of the providers that produce and serve static output.

Static providers

ProviderPrimary detectionDefault output
Static FilesStaticfile, index.html, or public/index.htmlConfigured root
Hugohugo.toml/json/yaml/yml or a Hugo content layoutpublic
Jekyll_config.yml or _config.yaml_site
MkDocsmkdocs.yml or mkdocs.yamlsite
Node StaticA recognized static framework, export configuration, or static build commandFramework-specific

Shared static runtime

Generator-specific build functions feed their output into staticfile_serve. Static sites are served with the bundled static-web-server package, and _redirects can be translated into its redirect configuration.

Node-static priority

Anybuild scores static Node.js output before the generic Node provider. A Vite, Astro, Docusaurus, Gatsby, or configured static export therefore does not need a Node start script—the built directory is served as static content.

Override the output directory

Terminal
ANYBUILD_STATIC_DIR=dist anybuild . --start