-
Notifications
You must be signed in to change notification settings - Fork 8
/
next.config.js
43 lines (40 loc) · 1.04 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
/*eslint-disable @typescript-eslint/no-var-requires*/
const nextTranslate = require('next-translate');
/**
* @type {import('next').NextConfig}
**/
const nextConfig = {
experimental: { scrollRestoration: true, largePageDataBytes: 128 * 100000 },
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',
],
},
compiler: {
emotion: true,
},
redirects: () => {
return [
{
source: '/dao/:slug*',
destination: '/org/:slug*',
permanent: true,
},
];
},
};
// eslint-disable-next-line import-helpers/order-imports
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
module.exports = withBundleAnalyzer(nextTranslate(nextConfig));