This article is only about deployment, so anyone can open and read your site.
If your code is already in GitHub, you can get it live on Cloudflare Pages in just a few minutes.
1) Create the project in Cloudflare Pages
Go to Cloudflare and create a project in Workers & Pages.
2) Connect GitHub and import the repository
Link your GitHub account and import this project (or your own fork).
3) Choose Next.js as your framework
During setup, Cloudflare asks for your framework/language. Pick Next.js .
4) Set your URL name and deploy
Choose the temporary Cloudflare URL name (you can replace it later with your custom domain), then run the deploy.
5) Enable the critical compatibility flag
After deployment, go to:
- Settings
- Compatibility Flags
Add this flag:
nodejs_compat
With that, your website is live and publicly accessible.