diff options
author | crupest <crupest@outlook.com> | 2020-06-02 20:18:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-02 20:18:52 +0800 |
commit | d393e939282dc394c655e10ce6016725519dc3f9 (patch) | |
tree | c193f865af7596fe9760f5b65ee1c655f5436d44 | |
parent | 3abd2446df84eeae99d27d0fc0b688702f5e77f8 (diff) | |
download | timeline-d393e939282dc394c655e10ce6016725519dc3f9.tar.gz timeline-d393e939282dc394c655e10ce6016725519dc3f9.tar.bz2 timeline-d393e939282dc394c655e10ce6016725519dc3f9.zip |
fix: Not server site.webmanifest .
-rw-r--r-- | Timeline/Properties/launchSettings.json | 7 | ||||
-rw-r--r-- | Timeline/Startup.cs | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/Timeline/Properties/launchSettings.json b/Timeline/Properties/launchSettings.json index 4bae443c..10c819c0 100644 --- a/Timeline/Properties/launchSettings.json +++ b/Timeline/Properties/launchSettings.json @@ -6,6 +6,13 @@ "ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_WORKDIR": "D:\\timeline-development" } + }, + "Timeline-Staging": { + "commandName": "Project", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Staging", + "ASPNETCORE_WORKDIR": "D:\\timeline-development" + } } } } diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs index 5dbc99e6..afcb97ac 100644 --- a/Timeline/Startup.cs +++ b/Timeline/Startup.cs @@ -114,7 +114,10 @@ namespace Timeline app.UseRouting();
- app.UseSpaStaticFiles();
+ app.UseSpaStaticFiles(new StaticFileOptions
+ {
+ ServeUnknownFileTypes = true
+ });
app.UseAuthentication();
app.UseAuthorization();
|