Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ updates:
interval: weekly
cooldown:
default-days: 7
# @takumi-rs >= 1.x crashes the Vercel Node lambda (process exit 128,
# empty /api/og responses) while working locally. Pinned to 0.62.8 until
# a newer release is verified against a production deployment.
ignore:
- dependency-name: "@takumi-rs/*"
groups:
production:
dependency-type: production
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@iconify-json/simple-icons": "^1.2.87",
"@monaco-editor/react": "^4.7.0",
"@shikijs/rehype": "^4.3.0",
"@takumi-rs/image-response": "1.8.7",
"@takumi-rs/wasm": "1.8.7",
"@takumi-rs/image-response": "0.62.8",
"@takumi-rs/wasm": "0.62.8",
"@tanstack/react-query": "^5.101.1",
"@vercel/analytics": "^2.0.1",
"@vercel/speed-insights": "^2.0.0",
Expand Down
152 changes: 4 additions & 148 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/pages/_api/api/og.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ export default async function handler(request: Request) {
module: wasmModule,
width: 1200,
height: 657,
// Explicit PNG: some social crawlers (notably Facebook) don't render
// WebP og:images, and takumi's default format has changed across
// versions.
format: 'png',
fonts: [
{ name: 'HBSet', data: hbSetFont, weight: 300, style: 'normal' as const },
{ name: 'Pilat', data: pilatFont, weight: 400, style: 'normal' as const },
Expand Down
Loading