-
Notifications
You must be signed in to change notification settings - Fork 5
/
next.config.js
35 lines (32 loc) · 1021 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
31
32
33
34
35
// const nextTranslate = require('next-translate-plugin');
const withNextIntl = require('next-intl/plugin')(
// This is the default (also the `src` folder is supported out of the box)
'./i18n.js'
);
const nextConfig = {
images: {
dangerouslyAllowSVG: true,
domains: [
// Avatar icons from different Next-auth providers. Icons for included software.
'clerk.com',
'github.githubassets.com',
'github.com',
'avatars.githubusercontent.com',
'camo.githubusercontent.com',
'raw.githubusercontent.com',
'lh3.googleusercontent.com',
'cdn-icons-png.flaticon.com',
],
},
reactStrictMode: true,
webpack: (config, { isServer }) => {
// If client-side, don't polyfill `fs`
if (!isServer) {
config.resolve.fallback = {
fs: false,
};
}
return config;
},
};
module.exports = withNextIntl((nextConfig));