-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
Src/Solarian.League.Web/Solarian.League.Web/wwwroot/404.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>404 - Not Found</title> | ||
</head> | ||
<body> | ||
<h1>Content not Found</h1> | ||
</body> | ||
</html> |
22 changes: 21 additions & 1 deletion
22
Src/Solarian.League.Web/Solarian.League.Web/wwwroot/staticwebapp.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
{ | ||
"routes": [ | ||
{ | ||
"route": "/assets/*", | ||
"headers": { | ||
"cache-control": "must-revalidate, max-age=15770000" | ||
} | ||
} | ||
], | ||
"navigationFallback": { | ||
"rewrite": "/index.html" | ||
"rewrite": "/index.html", | ||
"exclude": [ "/assets/*.{png,jpg,gif}", "/css/*" ] | ||
}, | ||
"responseOverrides": { | ||
"404": { | ||
"rewrite": "/404.html" | ||
} | ||
}, | ||
"globalHeaders": { | ||
"content-security-policy": "default-src https: 'unsafe-eval' 'unsafe-inline'; object-src 'none'" | ||
}, | ||
"mimeTypes": { | ||
".json": "text/json" | ||
} | ||
} |