mirror of
https://github.com/Moe-Sakura/frontend.git
synced 2026-03-15 04:53:18 +08:00
feat: 添加环境变量支持与PWA功能增强
* 更新 `.gitignore` 文件以包含环境变量文件 `.env` 和相关配置。 * 在 `env.d.ts` 中定义环境变量类型,支持 API 配置、功能开关和主题设置。 * 更新 `index.html`,添加 PWA 相关的 manifest 和 meta 标签,提升应用的安装体验。 * 引入 `lazysizes` 和 `quicklink` 以优化图片加载和链接预加载,提升性能。 * 更新多个组件以使用新的 UI 状态管理,确保一致性和可读性。 * 删除不再使用的 Font Awesome 图标,替换为 lucide-vue-next 图标,提升视觉一致性。 * 更新 `README.md`,添加环境变量配置说明和项目文档链接。
This commit is contained in:
10
.env.production
Normal file
10
.env.production
Normal file
@@ -0,0 +1,10 @@
|
||||
# 生产环境配置
|
||||
|
||||
# API 配置
|
||||
VITE_API_BASE_URL=https://cfapi.searchgal.homes
|
||||
|
||||
# 开发配置
|
||||
VITE_ENABLE_DEBUG=false
|
||||
VITE_ENABLE_MOCK=false
|
||||
|
||||
# 其他配置继承自 .env
|
||||
Reference in New Issue
Block a user