webpack and other js resources not found when using a subfolder of a static s3 website to serve public files #38865
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
When I run the hello world gatsby project with an added function to call an api it works locally but fails in Amazon's s3 in a subfolder.
I can see the resources that are not being found are there next to the index.html in the bucket.
However, in the url error I see that resources like webpack-runtime-34b58157afa1fc967979.js are not found because they are being looked for in the root of the bucket, not in the subfolder where they are.
build steps
error
gatsby-config.js - I have tried with and without pathPrefix and with different siteUrls.
index.js code snippet with function calling api that works in local dev
Config Flags
I have experimented with pathPrefix: "/reflections" but whether I put that in or not... it doesn't change the behavior.
The text was updated successfully, but these errors were encountered: