Skip to content

Commit 8f66b98

Browse files
committed
feat: add serve config for human app
1 parent 5771f3a commit 8f66b98

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

packages/apps/human-app/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"clean": "tsc --build --clean && rm -rf dist",
77
"start": "vite",
88
"build": "tsc --build && vite build",
9-
"start:prod": "serve -s dist",
9+
"start:prod": "serve -c ./serve.json",
1010
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1111
"preview": "vite preview",
1212
"test": "vitest --run",
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"public": "dist",
3+
"symlinks": true,
4+
"trailingSlash": false,
5+
"headers": [
6+
{
7+
"source": "**/*.html",
8+
"headers": [
9+
{
10+
"key": "Cache-Control",
11+
"value": "no-cache"
12+
},
13+
{
14+
"key": "Content-Security-Policy",
15+
"value": "frame-ancestors: 'none';"
16+
},
17+
{
18+
"key": "Strict-Transport-Security",
19+
"value": "max-age=63072000; includeSubDomains; preload"
20+
},
21+
{
22+
"key": "X-Content-Type-Options",
23+
"value": "nosniff"
24+
},
25+
{
26+
"key": "X-Frame-Options",
27+
"value": "DENY"
28+
},
29+
{
30+
"key": "Referrer-Policy",
31+
"value": "no-referrer"
32+
},
33+
{
34+
"key": "Permissions-Policy",
35+
"value": "geolocation=(), microphone=(), camera=()"
36+
}
37+
]
38+
},
39+
{
40+
"source": "**/*.{js,css,woff2}",
41+
"headers": [
42+
{
43+
"key": "Cache-Control",
44+
"value": "public, max-age=31536000, immutable"
45+
}
46+
]
47+
},
48+
{
49+
"source": "**/*.{ico,svg,jpg,png}",
50+
"headers": [
51+
{
52+
"key": "Cache-Control",
53+
"value": "public, max-age=3600"
54+
}
55+
]
56+
}
57+
]
58+
}

0 commit comments

Comments
 (0)