-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
49 lines (43 loc) · 985 Bytes
/
next.config.ts
File metadata and controls
49 lines (43 loc) · 985 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
41
42
43
44
45
46
47
48
49
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
turbopack: {
rules: {
// 모든 *.svg 파일을 @svgr/webpack으로 처리해서 JS(React 컴포넌트)로 변환
"*.svg": {
loaders: ["@svgr/webpack"],
as: "*.js",
},
},
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
issuer: {
and: [/\.(js|ts)x?$/],
},
use: [
{
loader: "@svgr/webpack",
options: {
// 필요하면 여기서 svgr 옵션 지정 가능
// 예: icon: true, svgo: true 등
},
},
],
});
return config;
},
// next/image 원격 호스트 허용 설정
images: {
remotePatterns: [
{
protocol: "https",
hostname: "campus-table-s3.s3.ap-northeast-2.amazonaws.com",
port: "",
pathname: "/**",
},
],
},
reactCompiler: true,
};
export default nextConfig;