chore(static web apps): fix 404 page
This commit is contained in:
parent
d3a8d4eb89
commit
3b96b42d4b
1 changed files with 19 additions and 0 deletions
19
staticwebapp.config.json
Normal file
19
staticwebapp.config.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"trailingSlash": "auto",
|
||||
"routes": [
|
||||
{
|
||||
"route": "/*",
|
||||
"headers": {
|
||||
"cache-control": "must-revalidate, max-age=15770000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responseOverrides": {
|
||||
"404": {
|
||||
"rewrite": "/404.html"
|
||||
}
|
||||
},
|
||||
"globalHeaders": {
|
||||
"content-security-policy": "default-src https: 'unsafe-eval' 'unsafe-inline'; object-src 'none'"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue