kedro-org / kedro-viz

Visualise your Kedro data and machine-learning pipelines and track your experiments.
https://demo.kedro.org
Apache License 2.0
671 stars 110 forks source link

Fix GitHub Pages 404 on demo site routes #2050

Closed ravi-kumar-pilla closed 1 month ago

ravi-kumar-pilla commented 1 month ago

Description:

Accessing the URL - https://demo.kedro.org/experiment-tracking directly in the browser leads in 404

This is a deployment bug and also blocks PRs with CI docs build failure - https://readthedocs.org/projects/kedro-viz/builds/25360375/

Context:

GitHub Pages doesn’t support routers that use the HTML5 pushState history API under the hood (for example, React Router using browserHistory). This is because when there is a fresh page load for a url like http://user.github.io/todomvc/todos/42, where /todos/42 is a frontend route, the GitHub Pages server returns 404 because it knows nothing of /todos/42.

Possible solution:

More information and possible solutions are mentioned here - https://create-react-app.dev/docs/deployment/#github-pages

cc: @rashidakanchwala

ravi-kumar-pilla commented 1 month ago

closing this infavor of #2048