Skip to content

docs(readme): say the database setup applies migrations - #337

Merged
viclafouch merged 1 commit into
mainfrom
docs/336-readme-apply-migrations
Dec 3, 2026
Merged

viclafouch merged 1 commit into
mainfrom
docs/336-readme-apply-migrations

Conversation

@viclafouch

Copy link
Copy Markdown
Owner

The README's "3. Database setup" step said "Push the schema to your database:" above prisma migrate dev, but that command applies the migrations (prisma db push is the one that pushes the schema).

  • That one line now reads "Apply the migrations to your database:". Nothing else in the README changed.
  • Checks run on the branch: pnpm run lint (0 warnings, 0 errors), pnpm run typecheck (exit 0), pnpm run format:check (all files formatted), pnpm run test (79 files, 567 tests passed). The pre-commit hook also ran typecheck, lint, knip, test and format:check: 5/5 successful.

Opened by Nyan.

Closes #336

Co-Authored-By: Nyan <noreply@petit-meme.io>
@viclafouch viclafouch added the documentation Improvements or additions to documentation label Dec 3, 2026
@viclafouch viclafouch self-assigned this Dec 3, 2026
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
petit-meme Ready Ready Preview Dec 3, 2026 1:58pm UTC

Request Review

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

📦 Startup JS · ✅ No heavier

Brotli · 33 routes · against main at 7c98c30 · workflow run

No route changed against main.

Caution

Far from the goal. 🟩 is the goal, each 🟥 one more goal’s worth.

Now Goal Distance
Startup JS of /memes/$memeId/studio, the heaviest route 516.8 kB 150 kB 🟩🟥🟥🟥 3.4×
Shell (every route) 291.4 kB 150 kB 🟩🟥 1.9×
Route JS of /memes/$memeId/studio 225.3 kB 50 kB 🟩🟥🟥🟥🟥 4.5×
📋 Every route
Route Route JS Budget Startup JS vs main
✅ Shell (every route) 291.4 kB 296 kB · 4.6 kB left — —
✅ /memes/$memeId/studio 225.3 kB 228 kB · 2.7 kB left 516.8 kB ·
✅ /memes/$memeId 205.9 kB 209 kB · 3.1 kB left 497.3 kB ·
✅ /admin/library/$memeId 197.1 kB 203 kB · 5.9 kB left 488.5 kB ·
✅ /memes/ai-search 175.6 kB 178 kB · 2.4 kB left 467.0 kB ·
✅ /settings 174.5 kB 177 kB · 2.5 kB left 465.9 kB ·
✅ /submit 165.1 kB 168 kB · 2.9 kB left 456.5 kB ·
✅ /password/create-new 163.2 kB 166 kB · 2.8 kB left 454.6 kB ·
✅ /password/reset 161.5 kB 164 kB · 2.5 kB left 452.9 kB ·
✅ /memes/bookmarks 156.8 kB 160 kB · 3.2 kB left 448.2 kB ·
✅ /memes/category/$slug 155.9 kB 159 kB · 3.1 kB left 447.4 kB ·
✅ / 155.2 kB 158 kB · 2.8 kB left 446.7 kB ·
✅ /verify-email 150.2 kB 153 kB · 2.8 kB left 441.7 kB ·
✅ /app 138.7 kB 140 kB · 1.3 kB left 430.1 kB ·
✅ /pricing 137.3 kB 140 kB · 2.7 kB left 428.8 kB ·
✅ /mentions-legales 129.5 kB 133 kB · 3.5 kB left 421.0 kB ·
✅ /terms-of-use 129.5 kB 133 kB · 3.5 kB left 421.0 kB ·
✅ /privacy 129.5 kB 133 kB · 3.5 kB left 421.0 kB ·
✅ /dmca 129.5 kB 133 kB · 3.5 kB left 421.0 kB ·
✅ /faq 124.4 kB 127 kB · 2.6 kB left 415.8 kB ·
✅ /checkout/success 124.0 kB 127 kB · 3.0 kB left 415.5 kB ·
✅ /admin/library 117.9 kB 124 kB · 6.1 kB left 409.4 kB ·
✅ /admin/categories 116.2 kB 122 kB · 5.8 kB left 407.7 kB ·
✅ /admin/users/$userId 106.6 kB 112 kB · 5.4 kB left 398.0 kB ·
✅ /admin/users 96.0 kB 102 kB · 6.0 kB left 387.5 kB ·
✅ /reels 90.7 kB 96 kB · 5.3 kB left 382.2 kB ·
✅ /admin/proposals 85.7 kB 91 kB · 5.3 kB left 377.1 kB ·
✅ /admin/activity/$ip 84.0 kB 90 kB · 6.0 kB left 375.5 kB ·
✅ /admin/downloader 83.6 kB 89 kB · 5.4 kB left 375.0 kB ·
✅ /admin/activity 83.3 kB 89 kB · 5.7 kB left 374.7 kB ·
✅ /admin 81.4 kB 87 kB · 5.6 kB left 372.9 kB ·
✅ /admin/ai-search 74.5 kB 80 kB · 5.5 kB left 365.9 kB ·
✅ /embed/$memeId 69.9 kB 75 kB · 5.1 kB left 361.3 kB ·
✅ /admin/services 59.6 kB 65 kB · 5.4 kB left 351.0 kB ·
🤖 Agent brief

What this measures. The Brotli size of each JS file the server-rendered page of a route modulepreloads, read from the TanStack Start manifest of pnpm run build:e2e. The shell is what the root route preloads on every page. Route JS is what a route adds on top, each file counted once. Startup JS is both, and every comparison with main runs on it: Rolldown moves code between the shell and the routes from one build to the next, and only the startup JS of a page tells what its visitor downloads. Sizes in the data are bytes.

Rules. Budgets live in bundle-budget.json as a one-way ratchet: the size when last updated, plus 5 kB. pnpm run bundle-size --update only lowers them, and --allow-growth raises them, flagged in red against main. Never raise one to turn the check green. Chunk names drop the Rolldown hash: meme-card stands for meme-card-<hash>.js. Two chunks with the same name add up, and a chunk loaded by every route reads every route. A chunk that grows while no route loading it gets heavier shows ⚪, with isRegression: false: Rolldown renamed or merged it, and only red chunks explain a heavier route. A chunk Rolldown renamed reads old → new, with renamedFrom. First-view CSS is gated apart, by e2e/first-view.spec.ts against firstViewCss.

Reproduce

pnpm run build:e2e
gh run download 46669764792 --name bundle-size --dir /tmp/main-bundle-size
git show origin/main:bundle-budget.json > /tmp/main-budget.json
pnpm run bundle-size --base /tmp/main-bundle-size/report.json --base-budget /tmp/main-budget.json
pnpm run build:analyze

Data

{
  "verdict": "pass",
  "base": {
    "commit": "7c98c30",
    "runId": "46669764792"
  },
  "violations": [],
  "raisedBudgets": [],
  "routeChanges": [],
  "chunkChanges": []
}

@viclafouch
viclafouch merged commit 1806f93 into main Dec 3, 2026
12 checks passed
@viclafouch
viclafouch deleted the docs/336-readme-apply-migrations branch December 3, 2026 14:03

This branch was successfully deployed

1 active deployment
Preview — f020707a Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: say the database setup applies the migrations, not a schema push

1 participant