next js app on cPanel

next js app on cPanel
const nextConfig = {
output:’export’,

};

npm run build

This command will create a production build of your project in the out directory.

Finally, deploy your project:

Open your hosting provider’s control panel.

Navigate to the File Manager.
Go to the public folder.
Upload the contents of the out directory to the public folder.

And that’s it! Your Next.js project is now live.

Please follow and like us:
Pin Share