Skip to content

Commit

Permalink
Updated the template per #12245 (#12325)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkArtakMSFT authored Jul 19, 2019
1 parent 7b65a32 commit 39c3ca2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 39c3ca2

Please sign in to comment.