You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ npm run build
# ...
$ du -sh .next/standalone/node_modules/
23M .next/standalone/node_modules/
Add storybook
npx storybook@latest init
Retest the standalone build
$ npm run build
# ...
$ du -sh .next/standalone/node_modules/
145M .next/standalone/node_modules/
Current vs. Expected behavior
Since storybook adds no dependencies used in app/, the expectation is that the output would be the same as the build without storybook. In other examples this was observed to be much larger (ex 400mb). This issue is similar to #51029
Verify canary release
I verified that the issue exists in the latest Next.js canary release
This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.
This issue has been automatically closed due to two years of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding!
Link to the code that reproduces this issue
https://github.com/robpc/nextjs-standalone-storybook-test
To Reproduce
Create the project
npx create-next-app@latest nextjs-standalone-storybook-test cd nextjs-standalone-storybook-test/
Edit the
next.config.js
Test the standalone build
$ npm run build # ... $ du -sh .next/standalone/node_modules/ 23M .next/standalone/node_modules/
Add storybook
Retest the standalone build
$ npm run build # ... $ du -sh .next/standalone/node_modules/ 145M .next/standalone/node_modules/
Current vs. Expected behavior
Since storybook adds no dependencies used in
app/
, the expectation is that the output would be the same as the build without storybook. In other examples this was observed to be much larger (ex 400mb). This issue is similar to #51029Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Fri Jan 27 02:56:13 UTC 2023 Binaries: Node: 18.16.0 npm: 9.5.1 Yarn: N/A pnpm: N/A Relevant Packages: next: 14.0.1 eslint-config-next: 14.0.1 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: standalone
Which area(s) are affected? (Select all that apply)
Standalone mode (output: "standalone")
Additional context
No response
The text was updated successfully, but these errors were encountered: