Exact example for OP's question,
Step 1: Create folder in src names .well-known
Step 2: Add apple-developer-merchantid-domain-association file inside .well-known folder
Step 3: Add 2 lines in angular.json assets
"src/.well-known/apple-developer-merchantid-domain-association",
{ "glob": "apple-developer-merchantid-domain-association", "input": "src/.well-known/", "output": "/" },
The final assets will look something like this,
"assets": [
"src/.well-known/apple-developer-merchantid-domain-association",
{ "glob": "apple-developer-merchantid-domain-association", "input": "src/.well-known/", "output": "/" },
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest"
],
Now, You should be able to access the file on: http://localhost:4200/.well-known/apple-developer-merchantid-domain-association