I'm a beginner to deploy application. I saw a lot of article that is written about deploying next.js app on Vercel or other servers that support next.js app. But I'm here because my next.js app can deploy and run on my server that I'm currently renting, but I can run the app only local host on the server. So when I access to the application I need to access such as "http://www.example.com:3000". How can I configure next.js app to run on such as "https://www.example.com"?
My server is installed apache2 and node.js16
Since my server is a rental server, I cannot run sudo command through ssh
I have custom domain and ssl certificate
Added "Homepage" property to package.json since it is required when react app is deployed
Tried to change apache config through ssh
Added "BasePath" property to next.config.js to route(This is probably not relevant)