aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-02 20:18:52 +0800
committercrupest <crupest@outlook.com>2020-06-02 20:18:52 +0800
commitd393e939282dc394c655e10ce6016725519dc3f9 (patch)
treec193f865af7596fe9760f5b65ee1c655f5436d44
parent3abd2446df84eeae99d27d0fc0b688702f5e77f8 (diff)
downloadtimeline-d393e939282dc394c655e10ce6016725519dc3f9.tar.gz
timeline-d393e939282dc394c655e10ce6016725519dc3f9.tar.bz2
timeline-d393e939282dc394c655e10ce6016725519dc3f9.zip
fix: Not server site.webmanifest .
-rw-r--r--Timeline/Properties/launchSettings.json7
-rw-r--r--Timeline/Startup.cs5
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();