How to access index.js on NextJS/Strapi

Hi, I am new to digital ocean/strapi and NextJS! I have created a strapi droplet and created a nextjs app. I can access strapi fine straight from the ip address, but cannot see how to access the nextjs app index.js.

Being inexperienced, to access the NextJS app, I have tried IP Adrress:3000 which doesn’t work. Can anyone please give me some pointers?


Submit an answer

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!

Sign In or Sign Up to Answer

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.


Thanks for the response. The answer turns our to be straight forward. When the Strapi droplet is created, port 3000 (used for NextJS) is blocked. So all that is needed is to open the port using ‘ufw allow 3000’ and the port is open and then index.js can be accessed using yourIPAddress:3000


Site Moderator
Site Moderator badge
February 24, 2021

Hi @netsidedeveloper,

I completely understand you in regards to the NextJS application. I was the same in that regard. Having said that, DigitalOcean have pretty good documentation about how to get started with it, where you can find what’s needed for you and stuff like that. You can find that documentation here:

Now, most probably you would need to install Nginx and configure it as a reverse proxy to your NextJS. I can provide you with simple steps or tutorials to follow but I would first recommend you checking the above documentation prior to actually going next to the Nginx stuff.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.