tech edc4cb770f fix: separate client and server utilities to fix build error
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>
2026-03-04 22:17:31 +08:00
2026-03-04 13:06:26 +08:00
2026-03-04 02:16:35 +08:00

资源下载网站

基于 Next.js 构建的内网 APK 资源下载工具。

功能

  • 按项目、版本搜索 APK 文件
  • 支持按 commit id 过滤
  • 简单的用户认证
  • 简洁美观的界面

开发

npm install
npm run dev

访问 http://localhost:3000

环境变量

.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
基于 Next.js 构建的内网 APK 资源下载工具。
Readme 174 KiB
Languages
TypeScript 97.2%
JavaScript 1.9%
CSS 0.9%