0
In Firebase wan't ich alle URLs zu routen, außer „/ docs“,Firebase Hosting-Ausnahme auf Neufassungen Eigenschaft
index.html Aber es funktioniert nicht. Die Ausnahme wird nicht berücksichtigt. Alle URLs leiten an index.html weiter.
Das ist mein firebase.json:
{
"hosting": {
"public": "target",
"rewrites": [
{
"source": "/docs",
"destination": "/docs.html"
},{
"source": "**",
"destination": "/index.html"
}],
"headers": [
{
"source": "**/*",
"headers": [
{"key": "X-Content-Type-Options", "value": "nosniff"},
{"key": "X-Frame-Options", "value": "DENY"},
{"key": "X-UA-Compatible", "value": "ie=edge"},
{"key": "X-XSS-Protection", "value": "1; mode=block"}
]
},
{
"source": "**/*[email protected](css|html|js|map)",
"headers": [
{"key": "Cache-Control", "value": "max-age=3600"}
]
}
],
"cleanUrls": true,
"trailingSlash": false
},
"rules": "./firebase.rules.json"
}
Und das ist mein „Ziel“ -Ordner