-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathnext.config.js
49 lines (44 loc) · 1.34 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
const withPWA = require('next-pwa')
const runtimeCaching = require('next-pwa/cache')
const linguiConfig = require('./lingui.config.js')
const { locales, sourceLocale } = linguiConfig
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
module.exports = withBundleAnalyzer(
withPWA({
target: 'serverless',
pwa: {
dest: 'public',
runtimeCaching,
disable: true,
},
images: {
domains: ['solarbeam.io', 'res.cloudinary.com', 'raw.githubusercontent.com', 'logos.covalenthq.com'],
},
reactStrictMode: true,
serverRuntimeConfig: {
captchaSecret: process.env.GOOGLE_CAPTCHA_SECRET,
faucetWalletPrivateKey: process.env.FAUCET_WALLET_PRIVATE_KEY,
faucetAmountAdd: process.env.FAUCET_AMOUNT_ADD,
faucetGas: process.env.FAUCET_GAS_PRICE_GWEI,
faucetTimeLimit: process.env.FAUCET_TIME_LIMIT_MIN,
faunadbSecret: process.env.FAUNADB_SECRET,
},
i18n: {
locales,
defaultLocale: sourceLocale,
},
async redirects() {
return [
{
source: '/',
destination: '/exchange/swap',
permanent: true,
},
]
},
})
)
// Don't delete this console log, useful to see the config in Vercel deployments
console.log('next.config.js', JSON.stringify(module.exports, null, 2))