Skip to content

Conversation

@Yuangwang
Copy link
Collaborator

Filters out all directories other than .next/standalone, in practice this will pretty much only delete the extra node_modules in the root directory, improving build speeds

},
outputFiles: {
serverApp: {
include: [".next/standalone"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming we're already moving in .next/static and public.

Also, let's only do this for developers manually specifying output: "standalone" for now, so we aren't breaking anyone. I see if I can wrap the draft MSA today.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We’re actually moving everything else still, the only thing we’re removing with this change is the root dir’s node_modules.

Isn’t that extra in all cases so this shouldn’t break anyone?

Copy link
Collaborator

@annajowang annajowang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one documentation nit

@Yuangwang Yuangwang merged commit 96c420b into main Jun 30, 2025
11 checks passed
@mehranabi
Copy link

It breaks monorepo setup.
We have our nextjs app at "apps/web" and our build output is at "apps/web/.next/standalone" and with this change our build goes through but the output is not copied to the final image.

mathu97 added a commit that referenced this pull request Jul 7, 2025
mathu97 added a commit that referenced this pull request Jul 7, 2025
* Revert "Filter out node_modules (#346)"

This reverts commit 96c420b.

* bump nextjs adapter version to 14.0.16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants