Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How include node modules in next server build? #5432

Closed
3jwddgm opened this issue Oct 11, 2018 · 2 comments
Closed

How include node modules in next server build? #5432

3jwddgm opened this issue Oct 11, 2018 · 2 comments

Comments

@3jwddgm
Copy link

3jwddgm commented Oct 11, 2018

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

@timneutkens
Copy link
Member

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

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

@3jwddgm
Copy link
Author

3jwddgm commented Oct 11, 2018

Thnx)

@lock lock bot locked as resolved and limited conversation to collaborators Oct 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants