edc4cb770f10554a6b8020973d560efabaf5b8fc
Split lib/utils.ts into: - lib/utils.ts: Client-safe utilities only (no Node.js imports) - lib/project-utils.ts: Server-only utilities with Node.js imports This fixes the Next.js build error where client components were importing modules that contained Node.js dependencies (fs, path). All tests pass and build succeeds. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
资源下载网站
基于 Next.js 构建的内网 APK 资源下载工具。
功能
- 按项目、版本搜索 APK 文件
- 支持按 commit id 过滤
- 简单的用户认证
- 简洁美观的界面
开发
npm install
npm run dev
环境变量
在 .env.local 中配置:
AUTH_USERNAME=admin
AUTH_PASSWORD=changeme
RESOURCE_PATH=/Users/tech/workspace/n3-world/handy-tools/ftdl
构建
npm run build
npm start
资源目录结构
RESOURCE_PATH/
├── FT/
│ ├── 0_42/
│ │ └── apks/
│ │ └── *.apk
│ └── 0_44/
│ └── apks/
│ └── *.apk
├── FT_DEV/
│ └── ...
└── FT_Rustore/
└── ...
Description
Languages
TypeScript
97.2%
JavaScript
1.9%
CSS
0.9%