mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-05 22:15:36 +05:00
Feature Request: meta tags for share link in social networks #15
This commit is contained in:
parent
f2f628add0
commit
6e38565439
13 changed files with 33 additions and 99 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue