less than 1 minute read

You need to set it to ‘*/’ so that files in subdirectories are recursively included in the artifact. It is mentioned in the AWS docs too… but it’s explained rather vaguely, so it’s easy to miss.

If you use the default settings of create-react-app, the build output ends up under the build directory. In that case, you can configure it as follows.

artifacts:
  files:
    - ./build/**/*
  discard-paths: no

20211022

Tags:

Categories:

Updated:

Leave a comment