Closed bluebeel closed 5 years ago
The duration of the build on the zeit.co platform is currently quite high even for a simple project containing only a Hello World.
This problem is due to some of the code rather disturbing but important. See below. https://github.com/bluebeel/now-nuxt/blob/5ff0dc455246c8dd1313e395eae1a2e5c4eb875a/index.js#L130-L133
https://github.com/bluebeel/now-nuxt/blob/5ff0dc455246c8dd1313e395eae1a2e5c4eb875a/utils.js#L31-L47
The node_modules folder is added to the lambda build because it is used by the launcher.js file which require nuxt.
The problem
The duration of the build on the zeit.co platform is currently quite high even for a simple project containing only a Hello World.
Details
This problem is due to some of the code rather disturbing but important. See below. https://github.com/bluebeel/now-nuxt/blob/5ff0dc455246c8dd1313e395eae1a2e5c4eb875a/index.js#L130-L133
https://github.com/bluebeel/now-nuxt/blob/5ff0dc455246c8dd1313e395eae1a2e5c4eb875a/utils.js#L31-L47
The node_modules folder is added to the lambda build because it is used by the launcher.js file which require nuxt.