When do you need to `includeNodeModules` in the `layer0.config.js`?

When do you need to includeNodeModules in the layer0.config.js?


Some frameworks, such as Nuxt, don’t automatically bundle the dependencies during the build process so they need to be included when deployed to Layer0 to be imported properly. Otherwise, you may see an error regarding a missing module at deploy or runtime.

Also note that any dependencies that are only needed at build time should be moved to devDependencies. Otherwise, these will also be included in the build and may exceed the size limit.