I have deployed a Gatsby site with gitlab-ci and aws cloudfront both with and without a path prefix.
The non-prefixed site requests for correct files and