Feature Request: meta tags for share link in social networks #15

This commit is contained in:
Kentai Radiquum 2025-08-22 04:35:06 +05:00
parent f2f628add0
commit 6e38565439
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
13 changed files with 33 additions and 99 deletions

View file

@ -1,7 +1,7 @@
import { ViewCollectionPage } from "#/pages/ViewCollection";
import { fetchDataViaGet } from "#/api/utils";
import type { Metadata, ResolvingMetadata } from "next";
export const dynamic = "force-static";
import { API_URL } from "#/api/config";
export async function generateMetadata(
{ params },
@ -9,7 +9,7 @@ export async function generateMetadata(
): Promise<Metadata> {
const id = params.id;
const { data, error } = await fetchDataViaGet(
`https://api.anixart.tv/collection/${id}`
`${API_URL}/collection/${id}`
);
const previousOG = (await parent).openGraph;