serverless / serverless-client-s3

A plugin to deploy front-end assets to S3 via the Serverless Framework
http://www.serverless.com
171 stars 61 forks source link

Feature Request: Specifying Error Document and Redirection Rules #37

Open dandalf opened 8 years ago

dandalf commented 8 years ago

In S3 Bucket settings for static website hosting, I can specify an Error Document and Redirection Rules in AWS. serverless-client-s3 defaults the Error Document to "error.html" if it exists in the dist path. I am building my site in react and would like to redirect all errors to "index.html" to handle them in my code and support browser history.

As a feature request, I'd like to be able to explicitly configure the index, error document, and redirection rules that get set on S3.