Hello! I need help configuring deep linking in my Astro webapp using the Node adapter.
Current setup:
- Files are in
public/.well-known/:- apple-app-site-association
- assetlinks.json
- Using Astro Node adapter
- Files are accessible in the browser
Issue:
The deep linking isn't working because the files need to be served with the Content-Type: "application/json" header(check the screenshot), but I'm not sure how to configure this with Astro's Node adapter.
Questions:
- What's the correct way to serve these files with the proper Content-Type header in Astro?
- Should I be using middleware, or is there a built-in way to handle this?
- Are there any specific Astro configuration settings I need to modify?
Any guidance would be greatly appreciated! Thanks!