From d0f926f33026a0594e1f0faf4c24866424d0e702 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 19 Apr 2024 23:13:14 +0100 Subject: [PATCH] update the config.json --- config.json | 8 ++++---- src/app/(pages)/player/[[...id]]/page.tsx | 4 ++-- .../server/[platform]/[[...hostname]]/page.tsx | 2 +- src/app/components/server/server-view.tsx | 2 +- src/app/layout.tsx | 16 ++++++++-------- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/config.json b/config.json index f4b2444..8a2ac2f 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { - "siteName": "Minecraft Utilities", - "siteDescription": "Minecraft Utilities offers you many endpoints to get information about a minecraft server or a player.", - "siteUrl": "https://mcutils.xyz/", - "apiUrl": "https://api.mcutils.xyz" + "name": "Minecraft Utilities", + "description": "Minecraft Utilities offers you many endpoints to get information about a minecraft server or a player.", + "publicUrl": "https://mcutils.xyz/", + "apiEndpoint": "https://api.mcutils.xyz" } diff --git a/src/app/(pages)/player/[[...id]]/page.tsx b/src/app/(pages)/player/[[...id]]/page.tsx index bdb3964..3eb873f 100644 --- a/src/app/(pages)/player/[[...id]]/page.tsx +++ b/src/app/(pages)/player/[[...id]]/page.tsx @@ -45,7 +45,7 @@ export async function generateMetadata({ params: { id } }: Params): PromiseCopy Player UUID - + Copy Share URL diff --git a/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx b/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx index e0c6183..8f3d92b 100644 --- a/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx +++ b/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx @@ -44,7 +44,7 @@ function getFavicon( server: CachedJavaMinecraftServer | CachedBedrockMinecraftServer | undefined, ): string | undefined { if (server == null || platform === ServerPlatform.Bedrock) { - return config.apiUrl + "/server/icon/fallback"; + return config.apiEndpoint + "/server/icon/fallback"; } server = server as CachedJavaMinecraftServer; return server.favicon && server.favicon.url; diff --git a/src/app/components/server/server-view.tsx b/src/app/components/server/server-view.tsx index 6a8ca8e..eef1c12 100644 --- a/src/app/components/server/server-view.tsx +++ b/src/app/components/server/server-view.tsx @@ -31,7 +31,7 @@ export function ServerView({ server, favicon }: ServerViewProps): ReactElement { > {/* Favicon */}