While deploying any Laravel project from laravel forge, we have to compile the asset files using webpack.
Usually, it takes approx 5-10 seconds only.
But this is taking more than 10 minutes
But this is strange. Compilation should never take that much memory.
To fix the issue, I’m unable to regenerate the issue in the local setup. It works fine in the local setup.
Code-wise as well, I’m not seeing any code which can require that much memory.
Before 1-2 months, the time was around 6 minutes.
But as the number of deployments increased, that time has also increased.