Deploy without node_modules folder?? #20524
Replies: 4 comments 1 reply
-
Usually you exclude the node_modules folder and you use the command |
Beta Was this translation helpful? Give feedback.
-
I'm going through the same issue. The deploy take a long time to finish because of node_modules folder, as the app gets more features the time to deploy increases as well. I hope to find a way to solve this. |
Beta Was this translation helpful? Give feedback.
-
Hi, any update on this. Facing same issue. The thing is I am using Azure Pipelines to deploy the App onto App service via Agent. The task doc says only zip package upto 1GB is supported. We have reached a size upto 800mb and I am concerned that I would not be able to deploy if it's exceeds 1GB. So need some input. Thank you |
Beta Was this translation helpful? Give feedback.
-
This whole node_modules BS suck so much. My nextjs web app was like 900 MB with them and only 41 mb after deleting node_modules but I have no idea if it will work when I host it on Vercel/Whatever. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am deploying an app to Azure with source code. However "node_modules" is a huge folder and its majority is completely useless for my app.
I tried to deploy without this folder, however, the application failed on Azure. So is there a way to deploy without this folder, or just to extract the bare minimum for the "next js" app to work? If so, what are the required node modules for the next-js app?
Beta Was this translation helpful? Give feedback.
All reactions