gatsby-plugin-s3
gatsby-plugin-s3 copied to clipboard
Seems `gatsby-plugin-s3 deploy` always sets ErrorDocument to 404.html
Seems when we run gatsby-plugin-s3 deploy
an putBucketWebsite
is sent and hardcodes 404.html
to be ErrorDocument
even if the targeted s3 bucket is not configured to use 404.html
as ErrorDocument
.
https://github.com/jariz/gatsby-plugin-s3/blob/9365136039514771d03f965d4f240f55fc7722e7/gatsby-plugin-s3/src/bin.ts#L215
I'll happily review a PR that makes this configurable. Is there a particular reason why you want your ErrorDocument to be called something else though? The easiest fix here is to call your error document 404.html.
Thanks @JoshuaWalsh . See https://github.com/jariz/gatsby-plugin-s3/pull/369 a PR for making this configurable