I'm trying to publish my Angular project https://github.com/KrishnaVeer7712/Reactive-and-Dynamic-Web-Page using Github pages at https://krishnaveer7712.github.io/Reactive-and-Dynamic-Web-Page/ but i'm getting error 404 Page not found. It is working fine when i open my project on localhost.
Steps I've done:
ng build --prod --base-href /Reactive-and-Dynamic-Web-Page/ works fine
gh-pages -d dist (Published)
I don't know where i'm doing wrong , can anyone please tell me what could be the reason.

"build-and-deploy-gh-pages": "ng build --prod --base-href ./ && npx ngh --dir dist/[reponame]"or in terminal just run it like this:ng build --prod --base-href ./ && npx ngh --dir dist/[reponame]