feat: add webpush and sadhna tracker
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/* eslint-disable @next/next/no-img-element -- Satori (ImageResponse) only
|
||||
renders raw <img>; next/image doesn't work inside OG image generation. */
|
||||
/**
|
||||
* OG card for a single post.
|
||||
*
|
||||
@@ -107,6 +109,7 @@ export async function GET(
|
||||
{hasImage ? (
|
||||
<>
|
||||
<img
|
||||
alt=""
|
||||
src={bgImageUrl}
|
||||
width={1200}
|
||||
height={630}
|
||||
@@ -191,6 +194,7 @@ export async function GET(
|
||||
>
|
||||
{post.author_avatar_url ? (
|
||||
<img
|
||||
alt=""
|
||||
src={post.author_avatar_url}
|
||||
width={64}
|
||||
height={64}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/* eslint-disable @next/next/no-img-element -- Satori (ImageResponse) only
|
||||
renders raw <img>; next/image doesn't work inside OG image generation. */
|
||||
/**
|
||||
* OG card for a user profile (`/u/<handle>`).
|
||||
*
|
||||
@@ -109,6 +111,7 @@ export async function GET(
|
||||
>
|
||||
{profile.avatar_url ? (
|
||||
<img
|
||||
alt=""
|
||||
src={profile.avatar_url}
|
||||
width={220}
|
||||
height={220}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/* eslint-disable @next/next/no-img-element -- Satori (ImageResponse) only
|
||||
renders raw <img>; next/image doesn't work inside OG image generation. */
|
||||
import { ImageResponse } from "next/og";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
@@ -79,6 +81,7 @@ export async function GET(request: Request) {
|
||||
>
|
||||
{/* Prabhupāda image — already contains quote mark and branding */}
|
||||
<img
|
||||
alt=""
|
||||
src={imgSrc}
|
||||
width={420}
|
||||
height={590}
|
||||
|
||||
Reference in New Issue
Block a user