Customize how your flipbook preview looks on Discord, Twitter, Facebook, and WhatsApp.
og-generator.js File.js file - Only JavaScript files are accepted.generateOGImage and getOGCacheKey - Your file needs module.exports = { generateOGImage, getOGCacheKey };React.createElement - Return JSX-style elements for the image.new ImageResponse(element, { width: 1200, height: 630 });fetch or axios.fs module.console.log - It can break the image generation.React.createElement styles (fonts, colors, layout, blur amount, image size, etc.)./api/og/YOUR_FLIPBOOK_ID.Upload a custom og-generator.js file to replace the current design.
/opt/flipbook-api/og-generator.backup.[timestamp].js
Via SSH (Manual):
nano /opt/flipbook-api/og-generator.js
pm2 restart flipbook-api
Via cURL (Command Line):
curl -X POST https://flipbook.gitgpt.chat/api/og/upload-template -F "file=@my-custom-og.js"