next.js icon indicating copy to clipboard operation
next.js copied to clipboard

How include node modules in next server build?

Open 3jwddgm opened this issue 8 years ago • 2 comments

Hi, next is great, thnx.

I have a big project based on lerna monorepo with next, and custom next server as a different packages. For production build we use few stages docker build, lerna build building all packets in monorepo, after this i wanna take custom server package and builded .next folder for the run next on server, but for the disk space economy, i wanna include using in next node_modules to next server bundle. I try customize webpack config for chose config.externals, or next-plugin-transpile-node-modules, but i dont have a luck.

Maybee you have example proj, example config, actual plugin or any advice for this?

Thnx.

Next version 7.0.1

https://spectrum.chat/thread/2a07bd86-895c-41f9-a610-392765a845df

3jwddgm avatar Oct 11 '18 18:10 3jwddgm

Based on your description you're looking for #4496.

So I'm going to close this issue as a duplicate of that issue.

timneutkens avatar Oct 11 '18 19:10 timneutkens

Thnx)

3jwddgm avatar Oct 11 '18 19:10 3jwddgm