mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 08:43:37 +00:00
- documents.py: fix root_version_id never being saved due to SQLAlchemy deferring the circular FK (CvDocument↔CvVersion). Use flush-based approach: flush doc, flush version, then set root_version_id before final commit. - config.py: add validator to coerce empty MINIO_ENDPOINT string to None, preventing boto3 ValueError: Invalid endpoint at startup. - versions.py: catch PatchValidationError and return 422 instead of 500 when a patch violates ATS guard rules. - api.ts: on 401, clear stale OIDC cookies and redirect to /login instead of showing the "Failed to load documents" error. https://claude.ai/code/session_01KKbzWYz8fLyG2qcwiDZ8fy
Next.js 15 webapp with React 19, Tailwind CSS 4, Supabase auth, and Turbopack.
Start
bun dev
# or from project root: make run.webapp
Open http://localhost:3000.
Scripts
| Command | Description |
|---|---|
bun dev |
Dev server with Turbopack |
bun build |
Production build |
bun start |
Serve production build |
bun lint |
Run ESLint |
bun typecheck |
Run tsc --noEmit |
Auth
Auth is wired to Supabase via NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY.
Set NEXT_PUBLIC_REQUIRE_AUTH=false in .env to disable auth-gating entirely (default for quick prototyping).
Structure
src/
app/ - Next.js App Router pages
components/ - Reusable bare-bones components (style last)
utils/supabase - Supabase client helpers
libs/ - Shared utilities
locales/ - i18n strings (add languages as needed)