Deploy Node.js on Windows Machine
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
Hi,
we recently switched to Next.js and use Windows Server for our projects (CMS + SQL Server...)
I don't think our deployment process is right yet, unfortunately I haven't found any information about it online.
I have the following structure on the server (see screenshot).
I run "pnpm i" and "pnpm run build" with the console.
Basically I have two questions
1) The node_modules folder grows and grows and grows, the only solution is to delete the entire folder and do a new install. There is a standalone mode of Node.js, but it doesn't work.
Does the entire Node_Moduls folder really have to be on the server?
2) the src folder can be accessed via the browser, I can of course also bypass this or lock it on the server side so that the folder is not accessible to the public, but this brings me back to the fundamental question of whether the deployment process is correct in its form ?
Thank you for your help 🙂
we recently switched to Next.js and use Windows Server for our projects (CMS + SQL Server...)
I don't think our deployment process is right yet, unfortunately I haven't found any information about it online.
I have the following structure on the server (see screenshot).
I run "pnpm i" and "pnpm run build" with the console.
Basically I have two questions
1) The node_modules folder grows and grows and grows, the only solution is to delete the entire folder and do a new install. There is a standalone mode of Node.js, but it doesn't work.
Does the entire Node_Moduls folder really have to be on the server?
2) the src folder can be accessed via the browser, I can of course also bypass this or lock it on the server side so that the folder is not accessible to the public, but this brings me back to the fundamental question of whether the deployment process is correct in its form ?
Thank you for your help 🙂