Hi,
I have a Droplet with WordPress set up and running smoothly. Now, I’d like to host a Next.js application on the same Droplet. I’ve tried various approaches but seem to be stuck. Could you provide a guide or recommend an article to help me with this setup?
Thank you!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Heya @massivelightseagreenurchin,
It really depends on what WebService you are using - Nginx/Apache.
Since Next.js uses nodejs it runs on a specific port. You’ll need to create a reverse proxy to server your app. Both are applicable and usable with that it just depends on what you are using.
If you are using Nginx, you’ll need to create the following Nginx conf:
Here is an example config if you are using Apache
Hope this helps!