24 Commits
Author SHA1 Message Date
mtvpls b21e7d9549 修正cloudflare下libsql依赖问题 2026-07-21 23:28:01 +08:00
mtvpls-turso aab6db64cc fix: use @libsql/client/http subpath to avoid native module deps
The main @libsql/client entry point pulls in the native libsql module
and isomorphic-ws/isomorphic-fetch, which webpack cannot parse in
EdgeOne builds. Using the http subpath provides a pure HTTP client
that works in edge/serverless environments without native dependencies.

Also add libsql, @libsql/isomorphic-fetch, @libsql/isomorphic-ws to
the edge build alias list in next.config.js as a safety net.
2026-07-11 17:28:55 +00:00
mtvpls-turso 8e464c463b feat: add Turso (libSQL) storage support for EdgeOne deployment
- Add TursoAdapter implementing DatabaseAdapter interface using @libsql/client
- Add 'turso' storage type to db.ts storage selector (reuses D1Storage)
- Add init-turso.js script for database migration and admin initialization
- Add @libsql/client dependency to package.json
- Update next.config.js to exclude @libsql/client from client-side bundle
- Update edgeone-deploy.yml workflow with TURSO_URL and TURSO_TOKEN secrets
- Update edgeone-build.mjs runtime env keys to include Turso variables
- Update .env.edgeone.example with Turso deployment instructions
- Update README.md with Turso as recommended storage for EdgeOne

Turso provides free SQLite-compatible cloud database (libSQL) with:
- 500 databases, 9GB storage, 1B row reads/month on free tier
- HTTP API compatible with edge/serverless environments
- Full SQLite syntax compatibility, reuses existing migrations
2026-07-11 17:04:27 +00:00
mtvpls 8997228be4 edgeone部署支持 2026-06-18 11:25:07 +08:00
mtvpls 99bcc8ed77 cloudflare下排除无用nodejs包 2026-06-11 11:57:29 +08:00
mtvpls caa9cd82c0 移除serverExternalPackages 2026-06-03 11:17:05 +08:00
mtvpls d600317ade 增加浏览器离线通知功能 2026-06-02 20:50:33 +08:00
mtvpls 1405d9ac1b 调整 2026-05-31 15:47:52 +08:00
mtvpls c195bfeafc 优化cloudflare体积 2026-05-31 15:17:30 +08:00
mtvpls 706b2fe272 修复cloudflare打包报错 2026-05-31 12:37:32 +08:00
mtvpls e74c7b15e0 优化开发编译速度 2026-05-29 22:54:11 +08:00
mtvpls 6b85c4464d 优化webpack 2026-05-27 23:12:48 +08:00
foxNG 1d3a7f2732 feat: 添加 Vercel Postgres 数据库支持
- 安装 @vercel/postgres 和 pg 依赖
- 创建 PostgresAdapter 适配器,兼容 D1 接口
- 创建 PostgresStorage 类,实现完整的 IStorage 接口
- 添加 Postgres 数据库初始化脚本和 schema
- 更 next.config.js 排除 Postgres 模块的客户端打包
- 添加 VERCEL_DEPLOYMENT.md 部署指南
- 支持 Vercel serverless 环境部署

注意事项:观影室功能在 Vercel 上不可用(需要 WebSocket 支持)
2026-02-08 00:37:37 +08:00
mtvpls c86f9cdca7 d1/sqlite支持 2026-01-30 14:27:43 +08:00
mtvpls 8d971650c5 cf部署支持 2026-01-23 17:26:20 +08:00
mtvpls 50ecb4f056 add ignoreDuringBuilds 2025-12-08 21:16:17 +08:00
mtvpls feb4af39a4 try fix build 2025-12-02 23:20:46 +08:00
mtvpls df80976828 fix build 2025-12-02 23:03:54 +08:00
mtvpls 328dc31bac fix build 2025-12-02 22:34:35 +08:00
shinya 701176076e feat: ready for public 2025-08-26 22:53:07 +08:00
shinya 0c514a37b8 feat: add obfuscation 2025-08-25 00:01:27 +08:00
shinya ed03c86436 feat: add user api limit 2025-08-20 19:37:36 +08:00
shinya b15c8dcbae feat: finish auth code 2025-08-20 01:19:46 +08:00
JohnsonRan b4ed660eca first commit 2025-08-12 21:50:58 +08:00