upload-apollo-client/app/next.config.js
Jayden Seric c789b3738b Updated dependencies and configs.
- Updated dependencies.
- Using a Next.js plugin for bundle analysis.
- Updated ESLint config.
- Removed npm from package engines.
- Using cross-fetch in place of isomorphic-unfetch.
2018-04-25 13:19:27 +10:00

19 lines
535 B
JavaScript

/* eslint-disable import/unambiguous */
const withBundleAnalyzer = require('@zeit/next-bundle-analyzer')
module.exports = withBundleAnalyzer({
analyzeServer: ['server', 'both'].includes(process.env.BUNDLE_ANALYZE),
analyzeBrowser: ['browser', 'both'].includes(process.env.BUNDLE_ANALYZE),
bundleAnalyzerConfig: {
server: {
analyzerMode: 'static',
reportFilename: 'bundle-analysis-server.html'
},
browser: {
analyzerMode: 'static',
reportFilename: 'bundle-analysis-browser.html'
}
}
})