I'm trying to implement blazor prerendering. It seems to work fine, but when I refresh the page, the layout (The container of the actual routed page) is not visible. I followed the instructions here https://jonhilton.net/blazor-wasm-prerendering/ and created a _Host.cshtml file in the Server project. But the Client/App.razor which is looking as follows is not included:
<Fluxor.Blazor.Web.StoreInitializer />
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<AppRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>@Frontend.ErrotPage_NotFoundTitle</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<MudAlert Severity="Severity.Error" Variant="Variant.Filled" Square="true" Class="ma-2">@Frontend.ErrorPage_NotFound</MudAlert>
</LayoutView>
</NotFound>
</Router>
Do I have to move this file to the Server project, or what is the right way to accomplish this?