[Vuejs]-Vuejs app with vue router hosted on amplify direct url to file doesn't work

0👍

You issue comes from the acces to the file througth Amplify for several reasons.

Try following:

  1. rename your endfile "apple-developer-merchantid-domain-association"
    with an extension like
    apple-developer-merchantid-domain-association.txt
  2. remove the dot in your path public/.well-known/apple-developer-merchantid-domain-association to public/well-known/apple-developer-merchantid-domain-association.txt

in your amplify console create a priority 1 rule that redirects your
https://mydomain/.well-known/apple-developer-merchantid-domain-association to
/well-known/apple-developer-merchantid-domain-association.txt with a 202 rexrite method.

It should work

You even didn’t need the component anymore

Leave a comment