How to deploy my nextjs app
Im pretty new to the server/cloud world. So im still trying to figure it out. I have paid for a sub on dokploy and i have a server. How would i deploy my nextjs app.
How do i create a container for my logs and do my settings look correct.

35 Replies
How to do create a container
Do you have a Dockerfile for your project repository? If you have a Dockerfile in your project repository, you can select the Dockerfile option, then specify the location of your Dockerfile file, then save and deploy, application containers are automatically created and run.

Hello
Do not have a dockerfile pretty sure

I don't get why is not finding my compontents?
Hey!
Is not necessary to write your own dockerfile
you can use nixpacks for example to build & run the application automatically
probably typescript resolution, can you try to build the nextjs application in your machine and see if you still have errors?
Hello
I use it on my localhost just fine and I don't use typescript
It works fine on my localhost so I don't really understand the errors
Can you share the package json you have!
Yes of course give me one moment
Pastebin
{ "name": "naturerank-insigts", "version": "0.1.0", "private": t...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Looks fine
your repo is public?
Is not public
But I can invite you
yeah if you can invite me would be awesome, this is my username: Siumauricio
added you
let me chck
Thank you so much
you are using aliases in a project that is fully javascript
you also don't have a tsconfig
Yes i use javascript
Is that bad`?
Yes
because aliases is a thing for typescript proyects
I thought that was normal. Should I remove it
yes, but le me try on my machine first
I tried to build locally and it gave me this errors
are you sure you already tried to build locally the application in your machine?
I actually just tried to do npm run dev and did not actually build it 😅. I will try and fix it thank you so much
yeah you need to run the
npm run build
and then start the production build with npm run start
but first make sure to solve all the errors that npm run build command give to youOkay thank you so much
I made it work, but how would i make it secure. Cloudflare. I have a firewall on hetzner

Any idea
you already have a domain?
Not yet. Is there any documation on how to add a domain?
Requirements
See a requirements for a domain for the Dokploy panel
Thank you so much
How would i connect to my terminal so i can see all the nextjs calls etc

what do you mean by nextjs calls?
you should see in the
logs
tab