From e442470c2c1e8cf85774dde3d8f48b68904ef764 Mon Sep 17 00:00:00 2001 From: Justin Keller Date: Wed, 26 Jul 2023 23:27:59 -0400 Subject: [PATCH] docs: add warning for webpack Bundling node_modules with webpack can cause issues. fix #2806 --- content/faq/serverless.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/faq/serverless.md b/content/faq/serverless.md index 6c16db19e3..6dbc39cfcc 100644 --- a/content/faq/serverless.md +++ b/content/faq/serverless.md @@ -106,6 +106,8 @@ module.exports = (options, webpack) => { > info **Hint** To instruct Nest CLI to use this configuration, create a new `webpack.config.js` file in the root directory of your project. +> warning **Warning** It is not recommended to bundle `node_modules` for Node.js applications. This is for demonstration purposes only. Check out this [comment](https://github.com/nestjs/nest/issues/1706#issuecomment-579248915) for more information. + With this configuration, we received the following results: | | |