Skip to content

.well-known dir not deployed

0

When deploying a basic Jekyll site, Amplify Console does not seem to include the .well-known dir

Repo: https://github.com/huphtur/well-known

Running this locally works fine: http://localhost:4000/.well-known/dnt-policy.txt

On Amplify the file is missing: https://master.d1u5qctrk5epup.amplifyapp.com/.well-known/dnt-policy.txt

Note line 33 in _config.yml: https://github.com/huphtur/well-known/blob/master/_config.yml#L33

Anyone have any idea how to fix that?

asked 7 years ago715 views
2 Answers
0

We explicitly exclude deploying . files unless you give an absolute path.
You have to add the .files path in buildSpec file.

Example:
baseDirectory: /build
files:
- '**/*'
- .well-known/assetlinks.json

answered 7 years ago
0

Contents of public folder are deployed on the root folder. Then, /.well-known/apple-app-site-association will be available from https://<yourdomian.com>/.well-known/apple-app-site-association You will customize Rewrites and Redirect in AWS Amplify in AWS Console as the default Rewrite will redirect all request to Index.html for React App to handle

AWS
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.