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 { BookmarksCategoryPage } from "#/pages/BookmarksCategory";
import { fetchDataViaGet } from "#/api/utils";
import type { Metadata, ResolvingMetadata } from "next";
export const dynamic = 'force-static';
import { API_URL } from "#/api/config";
const SectionTitleMapping = {
watching: "Смотрю",
@ -17,7 +17,7 @@ export async function generateMetadata(
): Promise<Metadata> {
const id: string = params.id;
const { data, error } = await fetchDataViaGet(
`https://api.anixart.tv/profile/${id}`
`${API_URL}/profile/${id}`
);
const previousOG = (await parent).openGraph;

View file

@ -1,7 +1,7 @@
import { BookmarksPage } from "#/pages/Bookmarks";
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: string = params.id;
const { data, error } = await fetchDataViaGet(
`https://api.anixart.tv/profile/${id}`
`${API_URL}/profile/${id}`
);
const previousOG = (await parent).openGraph;