Next.Js Custom Server Deployment
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
Im trying to next.js deployment on custom server with iis. But when i npm run build or next build doesn't matter i got only these files but i have web.config and server.js too. I think the build files are missings.
17 Replies
Barbary LionOP
server.js
web.config
package.json
Brown bear
What we ended up doing was running it as a normal nodejs server by doing npm run build then npm run start and then setting up a reserve proxy to point all external traffic to the internal port your app is running on, this avoids having to setup an additional server js file
@Brown bear What we ended up doing was running it as a normal nodejs server by doing npm run build then npm run start and then setting up a reserve proxy to point all external traffic to the internal port your app is running on, this avoids having to setup an additional server js file
Barbary LionOP
so what should i do ?
Give this a watch, might help
Barbary LionOP
Thx for helping but if you had so many storefront this solve not gonna work 😄
Brother i did everything he said , and now i have a website running, he explains reverse proxy
@Tonkinese https://youtu.be/HIb4Ucs_foQ?si=Z4v8uI6KrRF0er7y
Brown bear
This is actually an amazing resource, thank you for sharing!
Tonkinese
@Brown bear Yes indeed. He actually explains everything for seting up a VPS confoguring ,linux, using nginx and pm2..Basically everything, explains also how to connect to a remote server using VS code, so basically changing the code from the VS code, amazing resource.!Im thankfull that i found it, since i am a beggimer, doing web design dor clients
He also shares a full free pdf ,with all the terminal commands (explaining all the commands), needed for deploying it!
@Barbary Lion Thx for helping but if you had so many storefront this solve not gonna work 😄
Asian black bear
you look almost as moody in your profile pic as me and @Brown bear were trying to setup IIS
@Tonkinese Brother i did everything he said , and now i have a website running, he explains reverse proxy
Barbary LionOP
Thank you bro i'll check