Skip to content

Instantly share code, notes, and snippets.

Avatar

lenaten lenaten

  • Tel Aviv, Israel
View GitHub Profile
@lenaten
lenaten / gist:96f7102c92b3a7d59a50
Last active Dec 6, 2017
Hosting React app in s3 with CloudFront
View gist:96f7102c92b3a7d59a50
- 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
You can’t perform that action at this time.