-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnext.config.js
70 lines (68 loc) · 1.8 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
const routes = require('./src/constants/routes');
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: [
'api.staging.mygateway.xyz',
'doepp2nssa64p.cloudfront.net',
'ddm747vh67170.cloudfront.net',
'd14yyawlqn6zgz.cloudfront.net',
'api.mygateway.xyz',
'node.mygateway.xyz',
'arweave.net',
'localhost',
'doepp2nssa64p.cloudfront.net',
'cdn.mygateway.xyz',
'staging.cdn.mygateway.xyz',
'i.postimg.cc',
'cdn.shopify.com',
'static.ghost.org',
'images.unsplash.com',
'guardians.gateway.tech',
'gateway-1.ghost.io',
],
},
async redirects() {
return [
{
source: '/dashboard/user',
destination: routes.dashboard.user.receivedAssets,
permanent: true,
},
{
source: '/dashboard',
destination: routes.dashboard.user.receivedAssets,
permanent: true,
},
{
source: '/dashboard/org',
destination: routes.dashboard.user.receivedAssets,
permanent: true,
},
{
source: '/loyalty/:id',
destination: 'https://tryodyssey.xyz/loyalty/:id',
permanent: true,
basePath: false,
},
{
source: '/credential/:id',
destination: 'https://tryodyssey.xyz/credential/:id',
permanent: true,
basePath: false,
},
{
source: '/protocol/credentials/:id/show',
destination: 'https://www.tryodyssey.xyz/protocol/credentials/:id/show',
permanent: true,
basePath: false,
},
];
},
webpack: (config) => {
config.resolve.fallback = { fs: false, net: false, tls: false };
config.externals.push('pino-pretty', 'lokijs', 'encoding');
return config;
},
};
module.exports = nextConfig;