build: 移除Dockerfile中的mailcap依赖并优化前端配置
Docker Build and Push / build (push) Has been cancelled

- 删除Dockerfile中不必要的mailcap包以精简镜像
- 将前端配置从process.env改为import.meta.env以适配现代构建工具
- 移除Go代码中手动设置mime类型的冗余逻辑
- 修复静态资源路由路径格式(/assets改为assets/)
- 优化导入语句格式和代码结构
This commit is contained in:
2026-02-10 20:46:06 +08:00
parent 7f9b638553
commit 07f4be3fc1
4 changed files with 14 additions and 18 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
// config.js
const isProduction = process.env.NODE_ENV === 'prod' || process.env.NODE_ENV === 'production';
const isProduction = import.meta.env.PROD;
// 从 window 对象获取路径前缀(由后端注入或通过 API 获取)
const getPathPrefix = () => {