Skip to content

Instantly share code, notes, and snippets.

@bbachi
Created February 27, 2021 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbachi/67faab475607f8f09ebb1f1d195340e4 to your computer and use it in GitHub Desktop.
Save bbachi/67faab475607f8f09ebb1f1d195340e4 to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllersWithViews();
// In production, the Angular files will be served from this directory
services.AddSpaStaticFiles(configuration =>
{
configuration.RootPath = "ClientApp/dist";
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment