-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
75 lines (72 loc) · 1.58 KB
/
next.config.ts
File metadata and controls
75 lines (72 loc) · 1.58 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
webpack(config) {
// SVGR 설정을 더 구체적으로 지정
config.module.rules.push({
test: /\.svg$/,
use: [
{
loader: '@svgr/webpack',
options: {
typescript: true,
dimensions: false,
},
},
],
})
return config
},
reactStrictMode: false,
output: 'standalone',
devIndicators: {
buildActivity: false,
buildActivityPosition: 'bottom-right',
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'flexible.img.hani.co.kr',
},
{
protocol: 'https',
hostname: 'images.unsplash.com',
},
{
protocol: 'https',
hostname: 't1.kakaocdn.net',
},
{
protocol: 'https',
hostname: 'img1.kakaocdn.net',
},
{
protocol: 'https',
hostname: 'o2o-be-review-thumbnail-bucket.s3.amazonaws.com',
},
],
},
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
// MSW를 위한 추가 설정
async headers() {
return [
{
source: '/:path*',
headers: [
{ key: 'Access-Control-Allow-Origin', value: '*' },
{ key: 'Access-Control-Allow-Methods', value: 'GET,POST,PUT,DELETE,OPTIONS' },
{ key: 'Access-Control-Allow-Headers', value: '*' },
],
},
]
},
env: {
BASE_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080',
},
}
export default nextConfig