#Deploying Next.js+Laravel project on server

9 messages · Page 1 of 1 (latest)

hard escarp
#

@potent verge

Can you share more information on how you are currently trying to deploy it?

#

Are you using Docker?

potent verge
#

No not docker, Im trying to deploy it with node.js and PM2, I configured nginx to proxy_pass on port 3000 after port 80 is opened, when I tried to deploy just next.js project it worked, but then I tried with laravel and...

#

@hard escarp What do you think, should I try with different domains, like: api-exmaple.com for laravel and exmaplem.com for next , or just different ports is enough

hard escarp
#

@potent verge

Hmm, I am not a Laravel expert, but I have managed to get Laravel working with a Vue 3 frontend.

How is webpack set up?

#

You shouldn't need to deploy it on different ports or domains, it should be able to be accessed on the same domain and port

potent verge
#

Its with Vite set up, as always with simple configuration not alike webpack, I made different repositories, so in your opinion seperating them in diff repositories and ports is not neccessary right?

hard escarp
#

No, it should be deployed in the same repository

potent verge
#

Ok, thanks for your time🙏🏽