
How to deploy the Next.js project with multiple subdomains using PM2 + Nginx + Cloudflare
29 June, 2022
21
21
1
Contributors
Architecture

User Interface Illustration

Project Architecture
•
•
•
Manage daemon process with PM2
Generate an ecosystem.config.js
template with:
Modify the ecosystem file to match your needs. for example, I use this config:

List managed applications
Configure Nginx as a Reverse Proxy
DNS Management with Cloudflare
Cloudflare is one of the biggest networks operating on the Internet. People use Cloudflare services for the purposes of increasing the security and performance of their websites and services.

DNS Management Cloudflare
How to run this project in your local environment?
•
•
•
•
•
•
Conclusion
I put this project in the GitHub repository, here you go:
Reference
Related Show
next.js
react.js
nginx
cloudflare
pm2