Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

React Router URL on github pages

I’ve a live site on Github Pages.

It has URL:

example.com/frontend-challenges

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

it is a app that contain another app like

example.com/frontend-challenges/app-1
example.com/frontend-challenges/app-2
example.com/frontend-challenges/app-3

I’m using ReactJS/React Router. But whenever I try to access example.com/frontend-challenges/app-1 without enter example.com/frontend-challenges first Github coulnd’t find it.

How to overcome this?
URL:

https://yoga1234.github.io/frontendmentor-challenges/

>Solution :

This is for your app is a SPA, and GitHub Pages don’t support it.
Here’s an instruction to bypass this problem:

https://github.com/rafgraph/spa-github-pages#usage-instructions

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading