Skip to content

Commit 37c20af

Browse files
committed
Fix svg link error with @svgr/webpack dev dependency
1 parent aed7432 commit 37c20af

File tree

4 files changed

+13380
-9831
lines changed

4 files changed

+13380
-9831
lines changed

next.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@ module.exports = {
88
loader: 'akamai',
99
path: '',
1010
},
11+
webpack(config) {
12+
config.module.rules.push({
13+
test: /\.svg$/i,
14+
issuer: /\.[jt]sx?$/,
15+
use: ['@svgr/webpack'],
16+
})
17+
18+
return config
19+
},
1120
}

0 commit comments

Comments
 (0)