Skip to content

Commit 4b54778

Browse files
committed
#23 Bugfix: add UseSpa extension to load client app in Production
1 parent d07f07a commit 4b54778

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Startup.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
7070
// Add MapRazorPages if the app uses Razor Pages. Since Endpoint Routing includes support for many frameworks, adding Razor Pages is now opt -in.
7171
endpoints.MapRazorPages();
7272
});
73+
74+
app.UseSpa(spa =>
75+
{
76+
spa.Options.SourcePath = "ClientApp";
77+
});
7378
}
7479
}
7580
}

0 commit comments

Comments
 (0)