-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
37 lines (34 loc) · 929 Bytes
/
next.config.js
File metadata and controls
37 lines (34 loc) · 929 Bytes
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
const withPlugins = require('next-compose-plugins');
const {
supportSvg,
supportImages,
supportPolyfills,
supportSentry,
supportCaseSensitivePathsCheck,
supportDisableScSpeedy,
} = require('./config/webpack');
const { getRewrites } = require('./config/rewrites');
const { getRedirects } = require('./config/redirects');
module.exports = withPlugins([], {
swcMinify: true,
experimental: {
// ssr and displayName are configured by default
styledComponents: true,
},
poweredByHeader: false,
async rewrites() {
return getRewrites();
},
async redirects() {
return getRedirects();
},
webpack: (config, options) => {
supportSvg(config, options);
supportImages(config, options);
supportPolyfills(config, options);
supportSentry(config, options);
supportCaseSensitivePathsCheck(config, options);
supportDisableScSpeedy(config, options);
return config;
},
});