I've recently built an app using angular 4 in production flag --prod
.
It gave me some static files in the dist folder and after that I've uploaded the dist files in AWS S3 bucket. It all went fine until I clicked refresh. While clicking refresh on other routes like /page1 or /page2 it is showing '404 not found' no such key error.
Am I doing anything wrong here? I know the problem exists because there is only one file (index.html) in the dist folder. But what about other routes?
How could I make other pages available even after refreshing the page.