Skip to content

chore(setup): add satori dependencies and configure JSX support#50

Merged
evirunurm merged 1 commit into
feat/migrate-to-satorifrom
feat/satori-phase1-setup
Mar 20, 2026
Merged

chore(setup): add satori dependencies and configure JSX support#50
evirunurm merged 1 commit into
feat/migrate-to-satorifrom
feat/satori-phase1-setup

Conversation

@evirunurm
Copy link
Copy Markdown
Owner

@evirunurm evirunurm commented Mar 20, 2026

Summary

  • Install satori, react, react-dom as runtime dependencies and @types/react, @types/react-dom as dev dependencies
  • Enable "jsx": "react-jsx" in tsconfig.json for React 17+ automatic JSX transform
  • Update Jest config to discover and transform .tsx test files
  • Bundle Inter font weights 400 and 700 as static WOFF2 assets in scripts/assets/fonts/ (Satori requires explicit font data at render time)

Closes #45

Test plan

  • npm run typecheck passes with no errors
  • npm test — all 18 existing tests pass
  • Font files present at scripts/assets/fonts/inter-400.woff2 and scripts/assets/fonts/inter-700.woff2
  • satori, react, react-dom appear in dependencies in package.json

🤖 Generated with Claude Code

Install satori, react, react-dom and type definitions. Enable jsx:react-jsx
in tsconfig, update Jest to handle .tsx files, and bundle Inter 400/700
fonts in scripts/assets/fonts/ for use at render time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@evirunurm evirunurm self-assigned this Mar 20, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 20, 2026

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

Project Deployment Actions Updated (UTC)
github-stats-uvqq Ready Ready Preview, Comment Mar 20, 2026 0:58am

@evirunurm evirunurm changed the base branch from main to feat/migrate-to-satori March 20, 2026 00:59
@evirunurm evirunurm merged commit 0ced940 into feat/migrate-to-satori Mar 20, 2026
3 checks passed
@evirunurm evirunurm deleted the feat/satori-phase1-setup branch March 20, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(renderers): satori migration — Phase 1: Setup

1 participant