|
1 | 1 | const withNx = require('@nrwl/next/plugins/with-nx')
|
2 | 2 |
|
3 |
| -const withBundleAnalyzer = require('@next/bundle-analyzer')({ |
4 |
| - enabled: process.env.ANALYZE === 'true', |
5 |
| -}) |
| 3 | +// const withBundleAnalyzer = require('@next/bundle-analyzer')({ |
| 4 | +// enabled: process.env.ANALYZE === 'true', |
| 5 | +// }) |
6 | 6 |
|
7 | 7 | const withPlugins = require('next-compose-plugins')
|
8 |
| -const withSWRTypes = require('next-typed-api-with-swr') |
9 | 8 | /**
|
10 | 9 | * @type {import('next').NextConfig}
|
11 | 10 | */
|
12 | 11 | const nextConfig = {
|
13 | 12 | /* config options here */
|
14 | 13 | swcMinify: true,
|
15 | 14 | experimental: { nftTracing: true, topLevelAwait: true },
|
16 |
| - experiments: { topLevelAwait: true }, |
17 | 15 | staticPageGenerationTimeout: 180,
|
18 |
| - webpack(config, { dev }) { |
19 |
| - // if (dev) { |
20 |
| - // config.devtool = 'cheap-module-source-map' |
21 |
| - // } |
22 |
| - config.module.rules = [ |
23 |
| - ...config.module.rules, |
24 |
| - // ensure our libs barrel files don't constitute imports |
25 |
| - { |
26 |
| - test: /.*libs\/.*src\/.*index.ts/i, |
27 |
| - sideEffects: false, |
28 |
| - }, |
29 |
| - ] |
30 |
| - return config |
31 |
| - }, |
32 | 16 | images: { domains: ['avatars.githubusercontent.com'] },
|
33 | 17 | }
|
34 | 18 |
|
35 |
| -module.exports = withPlugins([[withNx], [withBundleAnalyzer]], nextConfig) |
| 19 | +module.exports = nextConfig |
0 commit comments