Skip to content

Commit

Permalink
[core] Ensure both docs bundles are analyzeable (mui#28410)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Sep 18, 2021
1 parent f924926 commit aa8ab17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ module.exports = {
analyzerMode: 'server',
generateStatsFile: true,
analyzerPort: options.isServer ? 8888 : 8889,
// Will be available at `.next/stats.json`
statsFilename: 'stats.json',
reportTitle: `${options.isServer ? 'server' : 'client'} docs bundle`,
// Will be available at `.next/${statsFilename}`
statsFilename: `stats-${options.isServer ? 'server' : 'client'}.json`,
}),
);
}
Expand Down

0 comments on commit aa8ab17

Please sign in to comment.