-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
68 lines (66 loc) · 1.43 KB
/
next.config.mjs
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
63
64
65
66
67
68
import withPWA from 'next-pwa'
import runtimeCaching from "next-pwa/cache.js"
const moduleExports = withPWA({
outputFileTracing: false,
publicRuntimeConfig: {
MIX_PANEL_KEY: process.env.MIX_PANEL_KEY,
},
pwa: {
dest: 'public',
disable: process.env.NODE_ENV === 'development',
runtimeCaching,
buildExcludes: [/middleware-manifest\.json$/]
},
images: {
domains: [
'd38ccjc81jdg6l.cloudfront.net',
'app.ideamarket.io',
'ideamarket.io',
'raw.githubusercontent.com',
'd37wda20o7ykez.cloudfront.net',
'zapper.fi',
'etherscan.io',
'cryptologos.cc',
'ideamarket.azureedge.net',
'pbs.twimg.com',
'abs.twimg.com'
],
},
async redirects() {
return [
{
source: '/:path*',
has: [
{
type: 'host',
value: 'attn.to',
},
],
permanent: true,
destination: 'https://app.ideamarket.io/:path*',
},
{
source: '/',
has: [
{
type: 'host',
value: 'attn.to',
},
],
permanent: true,
destination: 'https://app.ideamarket.io',
},
{
source: '/m',
permanent: true,
destination: '/',
},
{
source: '/discord',
destination: 'https://discord.gg/TPTHvutjnc',
permanent: true,
},
]
},
})
export default moduleExports