Last active
December 6, 2017 10:59
-
-
Save lenaten/96f7102c92b3a7d59a50 to your computer and use it in GitHub Desktop.
Hosting React app in s3 with CloudFront
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- create s3 bucket, for example: react. | |
- create cloudfront distributions with these settings: | |
- Default Root Object: index.html | |
- Origin Domain Name: s3 bucket url, for example: react.s3.amazonaws.com | |
- add custom error page with these settings: | |
- HTTP Error Code: 403: Forbidden | |
- Customize Error Response: Yes | |
- Response Page Path: /index.html | |
- HTTP Response Code: 200: OK | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment