Files
zpan/CLAUDE.md
T
saltboandClaude Opus 4.6 175c52a548 feat: fix CF Pages deployment and update project docs
- Restructure for wrangler Workers mode (main + [assets] + run_worker_first)
- Move wrangler.toml to project root, add nodejs_compat flag
- Move migrations to root, managed by wrangler d1 migrations
- Web builds to root dist/, wrangler bundles worker entry directly
- Update CONTRIBUTING.md with full dev workflow and quality gates
- CLAUDE.md indexes docs instead of duplicating content

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 11:09:18 -04:00

1.1 KiB
Raw Blame History

CLAUDE.md

Project Overview

ZPan v2 is an open-source, S3-native file hosting platform written in TypeScript. Cloudflare Pages is the primary deployment target, Node.js (Docker) is backup.

Core architecture: clients upload directly to S3-compatible storage via presigned URLs, bypassing server bandwidth.

Key Context

  • Monorepo: packages/server (Hono API), packages/web (React SPA), packages/shared (types/schemas)
  • Dual runtime: entry-cloudflare.ts (CF Workers + D1) and entry-node.ts (Node + SQLite)
  • Tests are co-located: *.test.ts (Node), *.cf-test.ts (CF Workers)
  • Migrations: drizzle-kit generates SQL → wrangler manages D1 state

Docs Index

Commit Convention

Conventional Commits (feat:, fix:, docs:, etc.). PRs target master.