forked from part4-6team/Coworkers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
49 lines (46 loc) · 1022 Bytes
/
next.config.mjs
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
41
42
43
44
45
46
47
48
49
import withPWA from 'next-pwa';
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
domains: ['example.com'],
remotePatterns: [
{
protocol: 'https',
hostname: 'i.pinimg.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'sprint-fe-project.s3.ap-northeast-2.amazonaws.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'lh3.googleusercontent.com',
port: '',
pathname: '/**',
},
{
protocol: 'http',
hostname: 'k.kakaocdn.net',
port: '',
pathname: '/**',
},
],
},
webpack: (config) => {
config.module.rules.unshift({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
return config;
},
};
export default withPWA({
dest: 'public',
register: true,
skipWaiting: true,
})(nextConfig); // withPWA 호출에서 nextConfig을 전달