gatsby-plugin-s3 icon indicating copy to clipboard operation
gatsby-plugin-s3 copied to clipboard

ErrorDocument with bucketPrefix if specified

Open y1o1 opened this issue 2 years ago • 0 comments

With bucketPrefix option, 404.html file will be located with key prefix bucketPrefix.

I pretty much need this fix in case when we use dynamic routing with pathPreix on s3. Because s3 doesn't support wildcard Redirection, but with this fix s3 return 404.html correctly. And cause by 404.html include js codes, the site show the dynamic routing page, at least.(Even the html file includes 404 content statically, and not good for SEO)

y1o1 avatar Sep 01 '22 11:09 y1o1