FAQ

Short answers about Bevel, including requirements, Markdown, routes, hosting, dynamic endpoints and versions.

On this page

What do I need to use Bevel?

The .NET 10 SDK or later and an ASP.NET Core project that uses the Web SDK (Microsoft.NET.Sdk.Web). Add the package with dotnet add package Bevel.

Is Bevel stable?

Bevel is pre-1.0, so APIs can change between minor versions. Read the Changelog when you upgrade.

Does Bevel render Markdown?

No. Bevel reads Markdown files, binds the front matter to your record, and gives you the body as RawMarkdown. You render it with your own Markdig setup in a component or a processor. See Markdown extensions.

Where do I declare URLs?

In Program.cs, with MapStatic. Data carries no routes. Setting routePattern or routeKey in bevel.json fails the build (BEVEL030).

Can I use @page in a component?

No. A component that declares @page "/x" is rejected. Bevel routes pages only through MapStatic.

Do I need a server?

Only to build. The export writes plain HTML, so any static host serves it. On a static host, Bevel does not run, so set up 404 pages and redirects in the host's settings.

Can I mix static pages with dynamic endpoints?

Yes. Plain app.MapGet endpoints are not Bevel routes. They are never exported and always run live. The sample blog has a live /api/search next to its static pages.

How does Bevel know to rebuild my data?

The data step skips itself when no input changed. It tracks files under Data/, files a data source read, appsettings*.json, bevel.json and the build environment. Set BevelPrebuildAlwaysRun for a loader that reads a database. See Performance.

Why are my drafts in the export?

You built in Debug. Debug builds run build-time code as Development. Export with -c Release. See Drafts showed up in my export.

Can I host under a sub-path like GitHub Pages?

Yes. Set BevelOptions.PathBase to /repo. Links and asset URLs gain the prefix. The export layout does not change. The templates take --base-path /repo to set it up for you.

Can two posts have the same slug?

Not if you add [Unique] to Slug. The build then fails with BEVEL079 and names both files. Without it, Bevel does not check.

How do I make tag and archive pages?

Put [GroupBy] or [GroupByDate] on a member. Bevel builds a dataset you can map to pages. See Tags and archives.

Write a JSON index with BevelResults.Json, or run Pagefind after the export. See Search your site.

Can I use a different folder than wwwroot?

Yes. Set OutputPath, or pass a folder to --bevel-build. See CLI and environment.

Where is the license?

Bevel is MIT licensed. See LICENSE.