Skip to content

Commit

Permalink
πŸ› fix: Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Dec 6, 2023
1 parent 59cc2f6 commit d064561
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
17 changes: 8 additions & 9 deletions api/sponsor.tsx
@@ -1,7 +1,5 @@
import { ImageResponse } from '@vercel/og';

import Sponsor from '../src/Sponsor';

export const config = {
runtime: 'edge',
};
Expand Down Expand Up @@ -32,19 +30,20 @@ export default async function handler(request: Request): Promise<any> {

return new ImageResponse(
(
<Sponsor
avatarSize={avatarSize}
data={data}
padding={padding}
themeMode={themeMode}
width={width}
/>
<div>
🀯❀️{avatarSize}
{padding}
{themeMode}
{JSON.stringify(data)}
</div>
),
{
emoji: 'fluent',
headers: {
'CDN-Cache-Control': 'public, s-maxage=60',
'Cache-Control': 'public, s-maxage=1',
'Vercel-CDN-Cache-Control': 'public, s-maxage=3600',
'content-type': 'image/png',
},
height,
width,
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -75,6 +75,7 @@
"remark-gfm": "^3",
"remark-slug": "^7",
"remark-toc": "^8",
"satori": "^0.10.11",
"simple-icons": "^10.0.0",
"swr": "^2.2.4",
"url-join": "^5",
Expand Down

0 comments on commit d064561

Please sign in to comment.