It's quite hard to debug any deployment issue on the cPanel or any managed server as the provider manages this type of server, and they've complete control of the server. And for that, We don't recommend Cpanel or any managed server for API deployment or frontend deployment. We suggest you use any VPS server where you have complete control of it. you can purchase any $5 – $10/mo server from amazon lightsail, ec2 or digitalocean or any ubuntu server
If you still decide to proceed with panel based server, our support team won't be able to help you. We have put some resources for Cpanel in this documentation section to help our users to get started but other than that, we don't have much to offer with Cpanel or any Managed Server
Vercel
vercel.com
If you want to host the template in vercel.com then follow the below command
API
It's not possible to host the API to vercel. Vercel doesn't support laravel API deployment. So you've to host the API on a separate server. We suggest you create a VPS server and host the API there. For more details, follow this VPS Deployment docs.
After the host, you'll get your API URL.
Frontend
Now for frontend add API URL and other necessary con fig details to,
shop -> vercel.json
admin -> rest -> vercel.json
after that, install vercel-cli on your computer using this command,
npm i -g vercel-cli
After that, log in to vercel using this command,
vercel login
Then go to the shop
directory and use this command to deploy,
vercel
Similarly, go to the admin -> rest
directory and use this command to deploy,
vercel
For more details,
Please follow nextjs deployment docs: