feat(static-web): implement static OG image generation service and add font support

- Updated Dockerfile to use Alpine variant for Node.js and added Perl installation.
- Introduced StaticOgService for generating Open Graph images with customizable templates.
- Added Geist-Medium font for rendering OG images.
- Updated TypeScript configuration to include JSX support and adjusted paths.
- Created type declarations for assets and Vercel OG module.
- Added new static assets for OG image generation.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-11-06 21:33:30 +08:00
parent 768acfe848
commit 4cdb3bfd4e
6 changed files with 467 additions and 449 deletions

View File

@@ -8,16 +8,11 @@
"module": "ESNext",
"moduleResolution": "Bundler",
"verbatimModuleSyntax": true,
"jsx": "react",
"types": ["node"],
"paths": {
"core": ["./src"],
"core/*": ["./src/*"],
"@afilmory/db": ["../../packages/db/src"],
"@afilmory/db/*": ["../../packages/db/src/*"],
"@afilmory/be-utils": ["../../packages/utils/src"],
"@afilmory/be-utils/*": ["../../packages/utils/src/*"],
"@afilmory/websocket": ["../../packages/websocket/src"],
"@afilmory/websocket/*": ["../../packages/websocket/src/*"]
"core/*": ["./src/*"]
},
"resolveJsonModule": true,
"allowJs": true,