forked from Meowhere/Meowhere
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
40 lines (37 loc) · 943 Bytes
/
Copy pathnext.config.ts
File metadata and controls
40 lines (37 loc) · 943 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
37
38
39
40
import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
/* config options here */
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
images: {
remotePatterns: [
{
protocol: 'https', // HTTP 또는 HTTPS 프로토콜 지정
hostname: 'sprint-fe-project.s3.ap-northeast-2.amazonaws.com', // 허용할 호스트네임
},
// 필요한 경우 다른 외부 도메인도 여기에 추가합니다.
// 예: { protocol: 'https', hostname: 'another-image-host.com' },
],
},
webpack(config, options) {
// svg import를 컴포넌트로 가능하게
config.module.rules.push({
test: /\.svg$/,
issuer: /\.[jt]sx?$/,
use: [
{
loader: '@svgr/webpack',
options: {
icon: true,
},
},
],
});
return config;
},
};
export default nextConfig;