尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Vyrek — personalised Hyrox training programmes. Marketing site + onboarding funnel + plan reveal + Stripe + blog.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Personalised Hyrox training programmes built by Elite 15 athletes. Marketing site, onboarding funnel, plan reveal, Stripe-backed trial, and the journal. Live at https://suthperformance.com.檢視完整 README ↗Personalised Hyrox training programmes built by Elite 15 athletes. Marketing site, onboarding funnel, plan reveal, Stripe-backed trial, and the journal. Live at https://suthperformance.com.
@tailwindcss/typography)@supabase/ssrcontent/blog/*.mdx), with custom Callout / PullQuote / Stat / StatGrid / KeyTakeaways componentspnpm install
cp.env.example.env.local
# Fill in env vars (see "Environment" below)
pnpm dev
Open http://localhost:3000.
app/ Routes (App Router)
api/
account/create/ POST endpoint for V3 quiz account creation
plan/[week]/ Paywall-enforced plan fetch
stripe/ Checkout session + webhook
og/blog/[slug]/ Per-post OG image generation (next/og)
blog/ Journal (index, slug, category, author, rss)
plan/ Plan reveal (owner + shareable variants)
quiz/ V3 quiz (with /v2 fallback)
welcome/ Post-checkout landing
llms.txt/ AI-crawler discovery doc
sitemap.ts Dynamic sitemap including blog
robots.ts robots.txt with explicit allow lists
components/
quiz-v3/ 15-screen quiz V3 (Marchon-Runna hybrid)
quiz-v2/ Preserved V2 fallback
plan/ Plan reveal UI (day card, paywall, sticky CTA)
blog/ Blog UI (post card, TOC, MDX callouts)
marketing/ Nav, hero, programmes, FAQ, footer
welcome/ Trial-confirm landing
shared/ Container, eyebrow, CTAs, logo
content/blog/*.mdx Blog posts (frontmatter + body)
lib/
blog/ Post loader, authors, URLs, JSON-LD helpers
email/ Resend wrapper + React Email templates
quiz-flow.ts V3 types + programme matching + date helpers
quiz-flow-v2.ts V2 screens (kept for /quiz/v2)
plan-generator.ts Pure Week 1/N builder w/ calibration
posthog.ts Lazy + consent-gated posthog-js
stripe.ts Lazy server-side Stripe client
supabase/ admin/server/browser wrappers
supabase/migrations/ 0001_init + 0002_quiz_v3 (V3 additions)
scripts/ Lighthouse, route sweeps, V3/plan/E2E tests
docs/ Build briefs and competitive analysis
Copy .env.example to .env.local and fill in. Without the optional ones, the funnel still works, they just degrade gracefully:
| Var | Required? | What happens if missing |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL | yes | Account creation API errors out |
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY | yes | Client cannot sign up users |
SUPABASE_SECRET_KEY | yes | Server cannot persist customer/quiz rows |
STRIPE_SECRET_KEY | for checkout | /api/stripe/create-checkout-session returns 503 with a friendly message |
STRIPE_PRICE_ID_MONTHLY | for checkout | Same, 503 with message |
STRIPE_WEBHOOK_SECRET | for webhook | /api/stripe/webhook returns 503 |
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY | for client | UI checkout button still works (server creates session) |
RESEND_API_KEY | for email | All sendXxxEmail calls log "skipping" and return ok: false |
NEXT_PUBLIC_POSTHOG_KEY | for analytics | capture() is a no-op; quiz funnel still works |
NEXT_PUBLIC_POSTHOG_HOST | optional | Defaults to https://eu.posthog.com |
Apply migrations: supabase db push (from a Supabase-CLI-authenticated machine) or run the SQL files in the Supabase dashboard.
| Command | What it does |
|---|---|
pnpm dev | Dev server (Turbopack) |
pnpm build | Production build |
pnpm start | Run the production build locally |
pnpm lint | ESLint |
pnpm exec tsc --noEmit | Type check |
Testing (Puppeteer-driven, against a running server):
| Command | What it tests |
|---|---|
node scripts/test-flow-v3.mjs <baseUrl> | Full V3 quiz happy path |
node scripts/test-quiz-alt-paths.mjs <baseUrl> | Doubles, raced-many, home+equipment paths |
node scripts/test-plan-reveal.mjs <baseUrl> | Plan reveal + day card sheet + 152kg calibration |
node scripts/test-blog-seo.mjs <baseUrl> | Blog JSON-LD, canonical, RSS, OG image |
node scripts/test-mobile-visual.mjs <baseUrl> | Mobile drawer, no h-scroll, hero above-the-fold |
node scripts/test-consent-and-pricing.mjs <baseUrl> | Cookie banner + £4.99 copy |
node scripts/full-route-sweep.mjs <baseUrl> | Every route at 390/1440, console errors |
node scripts/lighthouse.mjs <baseUrl> | Lighthouse perf/a11y/BP/SEO |
node scripts/lighthouse-blog.mjs <baseUrl> | Lighthouse blog-only |
Drop a new file at content/blog/<slug>.mdx. Frontmatter shape:
---
title: "Post title"
slug: "url-slug"
excerpt: "One-sentence summary."
category: "training" # first-race | training | technique | nutrition | race-day | recovery
tags: ["tag1", "tag2"]
publishedAt: "2026-05-22"
author: "james-wright" # or suth-team (lib/blog/authors.ts)
heroImage: "/media/images/programme-first-race.jpg"
heroAlt: "Alt text for the hero image"
seoTitle: "Optional, overrides <title> tag"
seoDescription: "Optional, overrides <meta description>"
faqs: # optional, triggers FAQPage rich result
- q: "Question?"
a: "Answer."
---
# Body
Use any standard Markdown, plus these custom MDX components:
<KeyTakeaways>
- One
- Two
</KeyTakeaways>
<Callout tone="tip" title="...">...children... </Callout>
<PullQuote attribution="Name">...children... </PullQuote>
<StatGrid>
<Stat value="12" label="WEEKS" caption="..." />
</StatGrid>
Next build picks it up automatically, sitemap, RSS, llms.txt, related-post scoring, category counts.
Production deploys are wired to push-to-main via Vercel ↔ GitHub. To deploy from local:
vercel --yes --prod
Preview deploys are automatic on PRs once the Vercel GitHub App is connected.
Trainer's Notebook. Direct, technical, no hype. Lowercase nav copy. No exclamation marks. Specific over generic ("12 weeks" not "a few months"). See docs/suth-build-brief-v3.md §4 for the full guide.