Skip to content

Instantly share code, notes, and snippets.

@murbanowicz
Created April 8, 2020 11:55
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 murbanowicz/df120afc0f17cddc1e0b8e9130ab9e97 to your computer and use it in GitHub Desktop.
Save murbanowicz/df120afc0f17cddc1e0b8e9130ab9e97 to your computer and use it in GitHub Desktop.
SPA for Production NET Core
public void ConfigureServices(IServiceCollection services)
{
// ...
services.AddSpaStaticFiles(configuration => { configuration.RootPath = "frontend/build"; });
}
public void Configure(IApplicationBuilder app)
{
// ...
app.UseSpaStaticFiles();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment