Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
2 of 9
deleted 162 characters in body
lenaten
  • 5.4k
  • 1
  • 15
  • 9

Hosting on s3 with CloudFront could be very easy without url hacks.

  • 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
lenaten
  • 5.4k
  • 1
  • 15
  • 9