-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
97 lines (93 loc) · 1.8 KB
/
next.config.ts
File metadata and controls
97 lines (93 loc) · 1.8 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
images: {
remotePatterns: [
{
protocol: "https",
hostname: "search.pstatic.net",
pathname: "/**",
},
{
protocol: "http",
hostname: "localhost",
port: "1010",
pathname: "/**",
},
{
protocol: "https",
hostname: "cdn.solvit-nuri.com",
pathname: "/file/**",
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
{
protocol: "https",
hostname: "k.kakaocdn.net",
},
{
protocol: "http",
hostname: "k.kakaocdn.net",
},
{
protocol: "https",
hostname: "p16-sign.tiktokcdn-us.com",
},
{
protocol: "https",
hostname: "p16-sign-va.tiktokcdn.com",
},
{
protocol: "https",
hostname: "platform-lookaside.fbsbx.com",
},
{
protocol: "https",
hostname: "scontent.xx.fbcdn.net",
},
{
protocol: "https",
hostname: "example.com",
pathname: "/profiles/**",
},
],
},
compiler: {
emotion: true,
},
reactStrictMode: true,
typescript: { ignoreBuildErrors: true },
async headers() {
return [
{
source: "/:path*",
headers: [
{
key: "X-Frame-Options",
value: "DENY", // 클릭재킹 방지
},
{
key: "X-Content-Type-Options",
value: "nosniff", // MIME 타입 스니핑 방지
},
{
key: "Referrer-Policy",
value: "strict-origin-when-cross-origin", // 리퍼러 최소화
},
{
key: "Permissions-Policy",
value:
"camera=(), microphone=(), geolocation=(), interest-cohort=()", // 불필요한 권한 차단
},
{
key: "Strict-Transport-Security",
value: "max-age=31536000; includeSubDomains"
},
],
},
];
},
};
export default nextConfig;