Updated the template per #12245 (#12325)

This commit is contained in:
Artak 2019-07-19 12:35:39 -07:00 committed by GitHub
parent 7b65a32b8b
commit 39c3ca2d9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,10 @@
<link href="css/site.css" rel="stylesheet" />
</head>
<body>
<app>@(await Html.RenderComponentAsync<App>())</app>
<app>
@* Remove the following line of code to disable prerendering *@
@(await Html.RenderStaticComponentAsync<App>())
</app>
<script src="_framework/blazor.server.js"></script>
</body>

View File

@ -169,7 +169,7 @@ namespace BlazorServerWeb_CSharp
#if (OrganizationalAuth || IndividualAuth)
endpoints.MapControllers();
#endif
endpoints.MapBlazorHub();
endpoints.MapBlazorHub<App>(selector: "app");
endpoints.MapFallbackToPage("/_Host");
});
}