-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnext.config.js
41 lines (32 loc) · 1.31 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
const { withSentryConfig } = require('@sentry/nextjs')
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
const nextConfig = {
poweredByHeader: false,
// https://nextjs.org/docs/api-reference/next.config.js/react-strict-mode
reactStrictMode: true,
// https://nextjs.org/docs/api-reference/next.config.js/trailing-slash
trailingSlash: true,
// This will build the project as a standalone app inside the Docker image
output: 'standalone',
// output source map for debugging
productionBrowserSourceMaps: true,
publicRuntimeConfig: {
// Will be available on both server and client
api_url: process.env.API_URL,
coin_symbol: 'BNB',
contract_factory_address: process.env.CONTRACT_FACTORY_ADDRESS,
blockchain_network_name: process.env.BLOCKCHAIN_NETWORK_NAME,
blockchain_view_address_url: process.env.BLOCKCHAIN_VIEW_ADDRESS_URL,
required_chain_id: process.env.REQUIRED_CHAIN_ID,
domain: process.env.DOMAIN,
},
sentry: {
disableServerWebpackPlugin: true,
disableClientWebpackPlugin: true,
},
}
// 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))