How to deploy DAX pure C# SSG to modern hosts - works because dotnet preinstalled
Vercel
vercel.json:
{
"buildCommand": "dotnet publish -c Release -o bin && ./bin/Dax build",
"outputDirectory": "site"
}
Netlify
netlify.toml:
[build]
command = "dotnet publish -c Release -o bin && ./bin/Dax build"
publish = "site"
GitHub Pages
.github/workflows/deploy.yml builds with actions/setup-dotnet@v4, then upload site/ artifact to deploy-pages.
Why DAX not CAX?
Vercel / Netlify have dotnet preinstalled, no GCC. CAX make fails. DAX builds 127ms and deploys.
Cloudflare Pages same — output site/.
About
DAX .NET Static Site Generator
DAX is a slim .NET SSG. Build static sites 50x faster than Blazor SSG. No WASM bloat, just pure static HTML. For .NET devs who hate Blazor slow.
Lastest Post
Hello DAX - Pure C# Slim Static Site Generator That Slaps Blazor Bloat
DAX vs CAX - Why C# Beats C for Windows Developers