test: twitter og error

This commit is contained in:
radishzzz 2025-03-16 18:54:08 +00:00
parent b24d5ba9f5
commit 1cb5e6aafc
8 changed files with 4 additions and 7 deletions

View file

@ -17,7 +17,7 @@ export const themeConfig: ThemeConfig = {
url: 'https://retypeset.radishzz.cc',
// favicon url
// support only SVG, PNG and ICO
favicon: '/image/Favicon.svg', // or https://example.com/favicon.svg
favicon: '/image/favicon.svg', // or https://example.com/favicon.svg
},
// SITE INFORMATION >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END

View file

@ -28,10 +28,10 @@ const pageTitle = postTitle ? `${postTitle} | ${headTitle}` : `${headTitle} - ${
const pageDescription = postDescription || description
// TODO: Change openGraph image fallback url
const pageImage = postSlug
? `${url}/opengraph/${postSlug}.png`
? `${url}/og/${postSlug}.png`
: apiflashKey
? `https://api.apiflash.com/v1/urltoimage?access_key=${apiflashKey}&url=${url}${langCode}&format=png&width=1500&height=788&ttl=86400&wait_until=network_idle&no_tracking=true`
: `https://api.apiflash.com/v1/urltoimage?access_key=02a837b6188f4ba0a7fd9fbeff03a83e&url=https://retypeset.radishzz.cc${langCode}&format=png&width=1500&height=788&ttl=604800&wait_until=network_idle&no_tracking=true`
: `/public/image/og-screenshot.png`
---
<head>
<!-- Basic info -->

View file

@ -24,7 +24,7 @@ export const { getStaticPaths, GET } = OGImageRoute({
title: page.title,
description: page.description,
logo: {
path: './public/image/Logo-On-OpenGraph.png', // Required local path and PNG format
path: './public/image/og-logo.png', // Required local path and PNG format
size: [70],
},
font: {