forked from ElvenTools/elven-tools-dapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
29 lines (27 loc) · 849 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
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config) => {
config.resolve.fallback = {
fs: false,
buffer: require.resolve('buffer'),
crypto: require.resolve('crypto-browserify'),
path: require.resolve('path-browserify'),
stream: require.resolve('stream-browserify'),
process: require.resolve('process/browser'),
};
return config;
},
reactStrictMode: false, // will be handled in following releases, when enabled there are problems in development
async rewrites() {
return [
{
source: `${process.env.NEXT_PUBLIC_ELROND_API}/:path*`,
destination: `${process.env.ELROND_CUSTOM_API}/:path*`,
},
];
},
eslint: {
dirs: ['components', 'config', 'hooks', 'pages', 'store', 'types', 'utils'],
},
};
module.exports = nextConfig;