-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
40 lines (36 loc) · 928 Bytes
/
next.config.js
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
import withBundleAnalyzer from '@next/bundle-analyzer'
import appConfig from './app.config.cjs'
const withBundleAnalyzerFn = withBundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
})
export default async () => {
/**
* @type {import('next').NextConfig}
*/
const nextConfig = withBundleAnalyzerFn({
transpilePackages: ['@useweb'],
env: {
nextjsPort: String(appConfig.nextjs.port),
},
experimental: {
outputFileTracingExcludes: {
'*': [
'node_modules/@swc/core-linux-x64-gnu',
'node_modules/@swc/core-linux-x64-musl',
'node_modules/@esbuild/linux-x64',
],
},
},
images: {
domains: [
'images.prismic.io',
'i.pravatar.cc',
's3-alpha-sig.figma.com',
'localhost',
'firebasestorage.googleapis.com',
'lh3.googleusercontent.com',
],
},
})
return nextConfig
}