-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
52 lines (41 loc) · 1.38 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { withSentryConfig } = require('@sentry/nextjs')
/** @type {import('next').NextConfig} */
const nextConfig = {
poweredByHeader: false,
reactStrictMode: true,
trailingSlash: false,
output: 'standalone',
swcMinify: true,
productionBrowserSourceMaps: false,
sentry: {
disableServerWebpackPlugin: true,
disableClientWebpackPlugin: true,
},
publicRuntimeConfig: {
// Will be available on both server and client
tronNetwork: process.env.TRON_NETWORK,
tokenAddress: process.env.TOKEN_ADDRESS,
tokenDecimals: process.env.TOKEN_DECIMALS,
tokenSymbol: process.env.TOKEN_SYMBOL,
batchContractAddress: process.env.BATCH_CONTRACT_ADDRESS,
walletConnectProjectId: process.env.WALLET_CONNECT_PROJECT_ID,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'px.ads.linkedin.com',
port: '',
pathname: '/collect/**',
},
],
},
}
// Make sure adding Sentry options is the last code to run before exporting, to
// ensure that your source maps include changes from all other Webpack plugins
module.exports = withSentryConfig(withBundleAnalyzer(nextConfig))