mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-25 02:57:31 +00:00
Allow explicit configuration of StaticFileOptions in new SPA APIs. Fixes #1424.
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Microsoft.AspNetCore.SpaServices
|
||||
// Developers who need to host more than one SPA with distinct default pages can
|
||||
// override the file provider
|
||||
app.UseSpaStaticFilesInternal(
|
||||
overrideFileProvider: options.DefaultPageFileProvider,
|
||||
options.DefaultPageStaticFileOptions ?? new StaticFileOptions(),
|
||||
allowFallbackOnServingWebRootFiles: true);
|
||||
|
||||
// If the default file didn't get served as a static file (usually because it was not
|
||||
|
||||
Reference in New Issue
Block a user