Replies: 2 comments
-
I understand this might not be as performant, but with node_modules my image ends up being upwards of 1GB, which is honestly much worse... |
Beta Was this translation helpful? Give feedback.
0 replies
-
Actually, I'm not even sure if this approach makes sense... I'm building with So I guess it doesn't do all that bundling and tree shaking after all...? Or I'm configuring something very wrong. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've read that the serverless build creates a tree-shaken production build with no dependencies on node_modules.
I want to take advantage of this to slim down my production image for deployment in a GKE cluster.
I understand that I can run the serverless build with
next start
, which also means, in turn, that I should have at least nextjs installed on the serving image.Nextjs is huge, though. Something like 400MB+... Surely not all of it is needed to serve the serverless bundles.
Is there a slimmer way to server the serverless build?
Beta Was this translation helpful? Give feedback.
All reactions