Created
April 8, 2020 11:55
-
-
Save murbanowicz/df120afc0f17cddc1e0b8e9130ab9e97 to your computer and use it in GitHub Desktop.
SPA for Production NET Core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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