I tried deploying a website to cpanel after writing the code on VS CODE. I tried yarn run build and i got a dist folder but noticed index.html file was the only html file that build also having index.css and index.js in my dist file while other file components like like product.html, about.html, contact.html and other next js files isnt building. On my Navigation menu my Products | ABout | Contact keeps bringing 404 error after deploying to cpanel. after yarn building image showing the file properties after building
My other files before building My Files without the dist file File 2
I was expecting to all navigation menu like Products | About | Contact Us displaying after clicking on the nav link instead of showing 404 error also expecting other properties of the nav bar menu and it react components built into the dist file after running yarn run build. Please i need professional help
Here is an illustration on local host using image Products page on local host enter image description here
About page enter image description here