Deploy React App to AWS CloudFront (CDN Service)

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 2

  • @Orrish-z3e
    @Orrish-z3e 2 місяці тому

    Hi, the app is hosted and is working but there is an issue with refresh. Whenever I do refresh it's says access denied and shows similar page as in your video 10:02. Also I can't hit the site using /something to a particular page. Using react-router

    • @coderslegacy5661
      @coderslegacy5661  2 місяці тому

      Let me guess, this issue only happens when you refresh on non-index pages? This is a react issue actually. You can look this up and find plenty of info on how to solve this (usually by implementing work-arounds or re-directs, since this is not a bug, rather it is a drawback of the react architecture)
      This is one of the first results i came across.
      stackoverflow.com/questions/64001221/react-app-spa-on-s3-aws-while-refreshing-the-page-shows-404-page