Answer the question
In order to leave comments, you need to log in
Where is the apple-app-site-association nuxt.js file?
maybe someone came across, I need to place the apple-app-site-association file on the host so that it opens as json, like on Facebook https://www.facebook.com/apple-app-site-association . and if I put it in static, then it is downloaded when you click on the link. anyone know how to solve it?
Answer the question
In order to leave comments, you need to log in
max_allowed_packet , вестимо, если там речь не про сотни мегабайт.
I did this:
const appleJson = require('../static/apple-app-site-association.json')
const handler = (req, res, next) => {
res.setHeader('Content-type', 'application/json')
res.statusCode = 200
res.end(JSON.stringify(appleJson))
}
export default handler
serverMiddleware: [
{ path: '/apple-app-site-association', handler: '@/middleware/apple.js' }
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question