-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.js
40 lines (34 loc) ยท 936 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
36
37
38
39
40
/** @type {import('next').NextConfig} */
/* eslint-disable @typescript-eslint/no-var-requires */
const ESLintWebpackPlugin = require('eslint-webpack-plugin');
const { withSentryConfig } = require('@sentry/nextjs');
const nextConfig = {
images: {
domains: [
'k.kakaocdn.net',
'blog.kakaocdn.net',
'dn-img-page.kakao.com',
'shared-comic.pstatic.net',
'colorate.azurewebsites.net',
'antoon-api-bucket.s3.ap-northeast-2.amazonaws.com',
'www.easylaw.go.kr',
],
},
reactStrictMode: true,
webpack: (config) => {
config.plugins.push(
new ESLintWebpackPlugin({
failOnWarning: false,
}),
);
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader'],
});
return config;
},
};
const sentryWebpackPluginOptions = {
silent: true,
};
module.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);