aboutsummaryrefslogtreecommitdiff
path: root/Timeline
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
commit80283a24c7401266e739d30b82b457fcd7c45ff0 (patch)
tree058899207f73a0298acee77480ffcb47017218c6 /Timeline
parent25bc15ab02b89d913772409a752cdfe40f70e4c3 (diff)
downloadtimeline-80283a24c7401266e739d30b82b457fcd7c45ff0.tar.gz
timeline-80283a24c7401266e739d30b82b457fcd7c45ff0.tar.bz2
timeline-80283a24c7401266e739d30b82b457fcd7c45ff0.zip
fix: Not server site.webmanifest .
Diffstat (limited to 'Timeline')
-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();