Skip to content

Why does my custom next.config break Standalone build in Docker? #65562

Answered by SouthLink
zanzlender asked this question in Help
Discussion options

You must be logged in to vote

I think it's because the output: "standalone" configuration is broken,Without this configuration, the component will not have the "/app/.next/standalone" folder。

After reading the plug-in documentation, I think you should be able to change the configuration to this:

const withBundleAnalyzer = NextBundleAnalyzer({
  enabled: !!process.env.ANALYZE == true,
});
const bundledConfig = withBundleAnalyzer({
   ...config
});
export default bundledConfig ;

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zanzlender
Comment options

Answer selected by zanzlender
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants