patdelphi
9231651ae1
feat: 完成分析结果下载功能实现
...
- 新增DownloadButton组件,支持Markdown、PDF、PNG三种格式下载
- 实现后端下载API接口(/api/download)
- 添加Markdown、PDF、PNG三种格式生成器
- 集成下载按钮到所有分析结果页面
- 修复API路径配置问题,确保开发环境正确访问后端
- 添加下载历史记录功能和数据库表结构
- 完善错误处理和用户反馈机制
2025-08-21 12:44:40 +08:00
patdelphi
6c295ba80b
Fix production environment detection for Koyeb deployment
...
- Add fallback detection using PORT=8000 for Koyeb
- Add environment debugging logs
- Ensure static file serving is enabled in production
- Fix NODE_ENV detection issues in containerized deployment
2025-08-19 19:17:44 +08:00
patdelphi
d0e27602aa
Add debug logging for static file serving
...
- Add filesystem checks for dist directory and index.html
- Log directory contents to help diagnose deployment issues
- Improve error handling for missing static files
2025-08-19 19:02:32 +08:00
patdelphi
858a0961b5
Fix API configuration and test production build
...
- Updated .env file with correct VITE_API_BASE_URL for local development
- Fixed API endpoint routing from localhost:5173 to localhost:3001
- Tested npm run build successfully with no errors
- Updated database and server configurations
2025-08-19 18:47:26 +08:00
patdelphi
9472fa8af7
Add frontend static file serving: 配置统一部署支持Web界面访问
2025-08-19 17:52:20 +08:00
patdelphi
8553d79f5e
Update CORS config: 支持动态Koyeb域名
2025-08-19 17:39:12 +08:00
patdelphi
7b47b6cc2c
Fix Koyeb deployment: 修复服务器监听地址和CORS配置
2025-08-19 17:37:22 +08:00
patdelphi
3e7120a339
添加Koyeb部署配置和文档
2025-08-19 16:05:39 +08:00
patdelphi
78f39e500b
添加Railway部署配置文件和CORS设置
2025-08-19 15:30:13 +08:00
patdelphi
57cd405e94
添加Vercel部署配置
2025-08-19 15:11:31 +08:00
patdelphi
d9c57dedb7
feat: 完成易经64卦数据补全和本地化改造
...
- 完全按照logic/yijing.txt补全所有64卦的完整数据结构
- 包含每卦的卦辞、象传、六爻详解和人生指导
- 重建八字、易经、紫微斗数三个核心分析器
- 实现完整的本地SQLite数据库替代Supabase
- 添加本地Express.js后端服务器
- 更新前端API调用为本地接口
- 实现JWT本地认证系统
- 完善历史记录和用户管理功能
2025-08-18 22:34:39 +08:00