feat: 添加过程矩阵全屏功能并优化部署配置

添加过程矩阵全屏查看功能,包括状态管理、快捷键支持和响应式布局
优化 Dockerfile 使用 npm ci 并添加生产环境标志
添加 nginx 配置支持 SPA 路由和静态资源缓存
This commit is contained in:
史悦
2026-02-03 09:02:44 +08:00
parent ae1ca8bfaa
commit 4fdc77e453
5 changed files with 118 additions and 12 deletions

22
nginx.conf Normal file
View File

@@ -0,0 +1,22 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# SPA 路由支持 - 所有路径都返回 index.html
location / {
try_files $uri $uri/ /index.html;
}
# 静态资源缓存
location /assets {
expires 1y;
add_header Cache-Control "public, immutable";
}
# gzip 压缩
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
gzip_min_length 1000;
}