-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
30 lines (30 loc) · 902 Bytes
/
Copy pathnext.config.js
File metadata and controls
30 lines (30 loc) · 902 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
const withMDX = require('@next/mdx')();
module.exports = withMDX({
output: 'export',
pageExtensions: ['ts', 'tsx', 'mdx'],
webpack(config) {
config.module.rules.push({
issuer: /\.[jt]sx?$/,
test: /\.svg$/i,
use: [
{
loader: '@svgr/webpack',
options: {
ref: true,
svgoConfig: {
plugins: [
{
name: 'cleanupIds',
params: {
remove: false,
},
},
],
},
},
},
],
});
return config;
},
});