Build and deploy

Export your Bevel site to plain files, then host it on GitHub Pages, any static host, or your own ASP.NET Core app.

bash
dotnet run -c Release -- --bevel-build dist

That renders every page into dist. Upload the folder to any web host.

  • Export your site

    Write static files, and run steps after the export.

  • Publish to GitHub Pages

    A complete workflow for project and user pages.

  • Host under a sub-path

    Use PathBase when the site is not at the domain root.

  • Other hosts

    Netlify, Cloudflare Pages, Azure Static Web Apps, S3, nginx, or your own app.

  • Development and production

    How your app serves the site live.

  • Authorization and exports

    Why protected routes stop an export, and how to opt in.

You can publish a Bevel site two ways:

  • Static hosting. Upload the exported files to GitHub Pages, Netlify, S3, Azure Static Web Apps or any web server. Bevel does not run there. The host serves the files, so set up 404 pages, fallbacks and redirects in the host's settings.
  • Your ASP.NET Core app. Deploy the app with its exported wwwroot. Bevel answers its own routes. This helps when the site lives next to live endpoints such as APIs or sign-in pages.