-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathnext.config.ts
More file actions
62 lines (59 loc) · 1.17 KB
/
next.config.ts
File metadata and controls
62 lines (59 loc) · 1.17 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { withSentryConfig } from '@sentry/nextjs';
import { NextConfig } from 'next';
const nextConfig: NextConfig = {
productionBrowserSourceMaps: true,
turbopack: {
resolveAlias: {
fs: {
browser: './src/lib/empty.ts'
},
net: {
browser: './src/lib/empty.ts'
}
}
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'via.placeholder.com',
port: ''
},
{
protocol: 'https',
hostname: 'img.freepik.com',
port: ''
},
{
hostname: 'api.dicebear.com',
protocol: 'https',
port: ''
}
]
},
compiler: {
removeConsole: process.env.NODE_ENV === 'production' ? {
exclude: ['error']
} : false
},
experimental: {
optimizePackageImports: ['telegram', 'posthog-js', '@sentry/nextjs'],
typedEnv: true
},
webpack: (config, { isServer }) => {
if (isServer) {
return config;
}
config.resolve.fallback = { fs: false, net: false, async_hooks: false };
return config;
}
};
export default withSentryConfig(nextConfig, {
org: 'kumneger-cg',
project: 'tg-cloud',
silent: !process.env.CI,
widenClientFileUpload: true,
hideSourceMaps: true,
disableLogger: true,
automaticVercelMonitors: true
});