-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
42 lines (35 loc) · 1.33 KB
/
netlify.toml
File metadata and controls
42 lines (35 loc) · 1.33 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
[build]
# 빌드 명령어
command = "npm run build:client"
# 배포할 디렉토리 (프론트엔드 빌드 결과물)
publish = "dist/public"
# Node.js 버전 설정
environment = { NODE_VERSION = "18" }
# SPA(Single Page App) catch-all rewrite
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# 보안 헤더 설정
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' https://pagead2.googlesyndication.com https://www.googletagservices.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: blob: https:; connect-src 'self' https:; frame-src https://googleads.g.doubleclick.net https://tpc.googlesyndication.com; worker-src 'self' blob:;"
# 웹 워커 파일에 대한 MIME 타입 설정
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000"
# 웹 워커 전용 헤더
[[headers]]
for = "/*worker*.js"
[headers.values]
Content-Type = "application/javascript"