Yes, that is correct Vadim Parfaniuc - US.
Given that your .next
folder is already small (28MB), so focus should be on reducing the size of the node_modules
folder associated with your Azure Functions as shared on this similar thread on github.
One of the workaround is to Run **npm install --production
or yarn install --production
**within your api
directory. This will install only the dependencies needed for production, excluding development dependencies.
You should also review your api/package.json
file and remove any unnecessary dependencies. If you're using a build process for your functions (e.g., for TypeScript), please make sure that the build output only includes the necessary files and dependencies.