Hello!
I need help reading the assetlinks.json file on vue.js SPA website
I keep the assetlinks.json file in the main file structure → well-known / assetlinks.json
I don’t have _redirects file
My netlify.toml looks like this:
[[headers]]
for = "/.well-known/assetlinks.json"
[headers.values]
Cache-Control = '''
public,
max-age=0'''
Content-Type = "application/json"
X-Content-Type-Options = "nosniff"
[[redirects]]
from = "/.well-known/*"
to = "/well-known/:splat"
status = 200
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
My assetlinks,json structure is like this:
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "package.name"
"sha256_cert_fingerprints": [
"37:D1:D2..."
]
}
}
]
When i go to: my.site/.well-known/assetlinks.json i get response with my index.html
but when I remove last rule from .toml file my page always return status 404 on any url path ;/
Where do i go wrong?