In this article I will show you how you can deploy your Nextjs application to Vercel easily and configure a custom domain from cloudflare with SSL certificate.
https://medium.com/@biruk-arega/how-to-deploy-to-vercel-and-configure-custom-domain-from-cloudflare-8f66490be25d