Question
Serving NextJS along with Python api on Nginx
I’ve currently got a Flask server running via Nginx + Gunicorn on a droplet, and a client website hosted on another hosting provider which connects to the Flask server via a subdomain (api.mydomain.com). Is it possible to serve the NextJS website from the same droplet at the root domain (mydomain.com)? If so, how can this be achieved using Nginx?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×