-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathnext.config.ts
47 lines (40 loc) · 1.14 KB
/
next.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { codecovWebpackPlugin } from '@codecov/webpack-plugin'
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
output: 'standalone',
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
experimental: {
reactCompiler: false,
turbo: {},
},
// Automatically bundle external packages in the Pages Router:
bundlePagesRouterDependencies: true,
// Opt specific packages out of bundling for both App and Pages Router:
// serverExternalPackages: [],
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '*',
port: '',
},
],
},
// https://nextjs.org/docs/app/api-reference/next-config-js/webpack
webpack: (config) => {
config.plugins.push(
codecovWebpackPlugin({
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
bundleName: 'clickhouse-monitoring-bundle',
uploadToken: process.env.CODECOV_TOKEN,
})
)
// Important: return the modified config
return config
},
}
export default nextConfig