Gym Log
개인 맞춤 근력 트레이닝 추적기(PWA)
엘리트 15코치가 만든 맞춤형 Hyrox 훈련 프로그램, 1주차 확인 후 Ben과 무료 상담 가능
Personalised Hyrox training programmes built by an Elite 15 coach. See your Week 1, then talk it through with Ben on a free consultation.
스포츠·피트니스TypeScript · MDXGitHub @kieronhawke온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기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.