-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
30 lines (28 loc) · 1007 Bytes
/
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
/** @type {import('next').NextConfig} */
const nextConfig = {
// reactStrictMode: true,
swcMinify: true,
eslint: {
ignoreDuringBuilds: true,
},
webpack: (config, {buildId, dev, isServer, defaultLoaders, webpack}) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
// config.plugins.push(new webpack.IgnorePlugin({ resourceRegExp: /.*?\.node/ig }))
if (isServer) {
config.externals.push({
'@rapidsai/core': '@rapidsai/core',
'@rapidsai/cuda': '@rapidsai/cuda',
'@rapidsai/webgl': '@rapidsai/webgl',
'@rapidsai/deck.gl': '@rapidsai/deck.gl',
'@rapidsai/rmm': '@rapidsai/rmm',
'@rapidsai/cudf': '@rapidsai/cudf',
'apache-arrow': 'apache-arrow'
});
}
// console.log(require('util').inspect({ isServer, config }, false, Infinity, true));
// Important: return the modified config
return config;
},
}
module.exports = nextConfig