I deploy my next js application on cPannal everything is working properly but I found the error 500 when I hit the URL. But if I click on any button or in any other link it works properly. I am unable to find the mistake kindly guide me to solve this type of problem. the link of my next.js application is
I think I may need to add some .htaccess rules to remove the 500 error. kindly guide me.