Skip to content

Commit

Permalink
Updated the template per #12245
Browse files Browse the repository at this point in the history
  • Loading branch information
Artak Mkrtchyan committed Jul 18, 2019
1 parent 3039748 commit 73471f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -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>
Expand Down
Expand Up @@ -169,7 +169,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
#if (OrganizationalAuth || IndividualAuth)
endpoints.MapControllers();
#endif
endpoints.MapBlazorHub();
endpoints.MapBlazorHub<App>(selector: "app");
endpoints.MapFallbackToPage("/_Host");
});
}
Expand Down

0 comments on commit 73471f4

Please sign in to comment.