forked from slid-todo/front
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
36 lines (34 loc) · 863 Bytes
/
Copy pathnext.config.ts
File metadata and controls
36 lines (34 loc) · 863 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
/* eslint-disable @typescript-eslint/no-require-imports */
import { NextConfig } from "next";
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const nextConfig: NextConfig = {
/* config options here */
webpack: config => {
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
});
return config;
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'zzikzzik-bucket.s3.ap-northeast-2.amazonaws.com',
},
{
protocol: 'https',
hostname: 'picsum.photos'
},
{
protocol: 'https',
hostname: 'i.pravatar.cc'
}
],
formats: ['image/avif', 'image/webp'],
},
};
// withBundleAnalyzer를 통해 nextConfig를 래핑
export default withBundleAnalyzer(nextConfig);