-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
45 lines (43 loc) · 1.05 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
/*
This file is not compiled, and NodeJS does not currently support import statements.
Require statements are needed for imports to work for now.
*/
/* eslint-disable @typescript-eslint/no-var-requires */
const withSourceMaps = require('@zeit/next-source-maps');
nextConfig = {
webpack: (config, options) => {
if (!options.isServer) {
config.resolve.alias['@sentry/node'] = '@sentry/browser';
}
return config;
},
images: {
domains: [
'avatars.githubusercontent.com',
'avatars0.githubusercontent.com',
'avatars1.githubusercontent.com',
'avatars2.githubusercontent.com',
'avatars3.githubusercontent.com',
'avatars4.githubusercontent.com',
],
},
async redirects() {
return [
{
source: '/report',
destination: '/',
permanent: true,
},
{
source: '/api-info',
destination: '/about',
permanent: true,
},
];
},
experimental: {
workerThreads: false,
cpus: 1,
}
};
module.exports = withSourceMaps(nextConfig);