尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
Next.js 16 (App Router) + React 19 + Tailwind, deployed on Vercel. Talks to the
FastAPI backend (fight_trainer_backend, Railway) and to Supabase for auth.
Every statement below is taken from the code and cites the file. If something
here disagrees with the code, the code is right and this file is a bug.
pnpm typecheck and pnpm build are the gates a change must pass.檢視完整 README ↗Next.js 16 (App Router) + React 19 + Tailwind, deployed on Vercel. Talks to the
FastAPI backend (fight_trainer_backend, Railway) and to Supabase for auth.
Every statement below is taken from the code and cites the file. If something here disagrees with the code, the code is right and this file is a bug.
pnpm install # pnpm, not npm — pnpm-lock.yaml is the lockfile
cp .env.local.example .env.local # fill NEXT_PUBLIC_API_URL + Supabase keys
pnpm dev # http://localhost:3000
pnpm typecheck # tsc --noEmit — THE release gate
pnpm build # production build
pnpm lint # ESLint 9 flat config
pnpm typecheck and pnpm build are the gates a change must pass.
pnpm lint runs but is not yet clean: it reports 33 pre-existing errors —
mostly react/no-unescaped-entities and 17 react-hooks/set-state-in-effect.
Those predate the config being added and are tracked as post-ship work. Do not
add eslint-disable comments to make the number smaller.
/ marketing home /pricing, /about, /privacy, /terms
/auth/login coach password login /auth/signup, /auth/signup/coach
/auth/forgot password reset /auth/reset-password
/auth/student/accept invite claim (student Google OAuth binds here)
/invoice/[token] PUBLIC tokenized invoice + Stripe checkout — no auth
/trainer dashboard /trainer/sessions, /sessions/new, /sessions/[id]
/trainer/students, /students/[id], /students/[id]/billing
/trainer/schedule, /plans, /library, /inactivity, /graph
/trainer/billing
/trainer/analyze, /analyze/[id], /fighters, /fighters/[id]
/trainer/settings/payments, /settings/integrations
/student dashboard /student/feed, /sessions, /schedule, /plan
/student/profile, /intake, /graph, /analyzer
/dtsp-admin admin /dtsp-admin/library, /dtsp-admin/import
Supabase Auth, ES256/JWKS — the backend verifies the same JWT.
/auth/login)./auth/student/accept and signs in with Google, which binds that identity to
their existing student row.app_metadata.user_role claim, never from an
email allowlist.Three guard layers, in order:
middleware.ts — edge gate. /trainer/*, /student/*, /dtsp-admin/* each
require the matching role; a signed-in user with the wrong role is redirected
to their own root rather than shown a 403.<RoleGate role="…"> in app/trainer/layout.tsx and app/student/layout.tsx
— client-side, so a soft navigation cannot slip past the edge.All client-visible, all NEXT_PUBLIC_* (see .env.local.example):
| Var | Purpose |
|---|---|
NEXT_PUBLIC_API_URL | FastAPI base URL |
NEXT_PUBLIC_SUPABASE_URL | Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY | publishable key (sb_publishable_*) — never the legacy anon JWT |
NEXT_PUBLIC_BUYER_BRAND_NAME / _TAGLINE / _DOMAIN | M4 brand, read only via lib/brand.ts |
NEXT_PUBLIC_PAYMENTS_PROVIDER | venmo (default) or stripe, read at lib/payments.ts |
The Venmo/Zelle identity is deliberately not here: it comes from the tenant
settings row via GET /api/pricing/payment-methods, so the coach's settings
page is the single source of truth (lib/api/pricing.ts).
There is no unit-test harness in this repo — no Jest, no Vitest.
Playwright specs ARE authored (e2e/, playwright.config.ts) but the harness
is not installed: @playwright/test is not a dependency, which is why
playwright.config.ts carries a @ts-nocheck. To activate:
pnpm add -D @playwright/test && pnpm exec playwright install chromium
pnpm exec playwright test
Until then, verification is pnpm typecheck, pnpm build, and manual browser
smoke.