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 { CollectionsFullPage } from "#/pages/CollectionsFull";
|
||||
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/release/${id}`
|
||||
`${API_URL}/release/${id}`
|
||||
);
|
||||
const previousOG = (await parent).openGraph;
|
||||
|
||||
|
@ -38,7 +38,7 @@ export async function generateMetadata(
|
|||
|
||||
export default async function Collections({ params }) {
|
||||
const { data, error } = await fetchDataViaGet(
|
||||
`https://api.anixart.tv/release/${params.id}`
|
||||
`${API_URL}/release/${params.id}`
|
||||
);
|
||||
|
||||
if (error) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { ReleasePage } from "#/pages/Release";
|
||||
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/release/${id}`
|
||||
`${API_URL}/release/${id}`
|
||||
);
|
||||
const previousOG = (await parent).openGraph;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue