update the config.json
This commit is contained in:
parent
6e2fc9e13b
commit
d0f926f330
@ -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"
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ export async function generateMetadata({ params: { id } }: Params): Promise<Meta
|
||||
const headPartUrl = skin.parts.head;
|
||||
|
||||
return generateEmbed({
|
||||
title: `${username}`,
|
||||
title: `${username}'s Profile`,
|
||||
description: `UUID: ${uniqueId}\n\nClick to view more information about the player.`,
|
||||
image: headPartUrl,
|
||||
});
|
||||
@ -95,7 +95,7 @@ export default async function Page({ params: { id } }: Params): Promise<ReactEle
|
||||
<ContextMenuItem>Copy Player UUID</ContextMenuItem>
|
||||
</CopyButton>
|
||||
|
||||
<CopyButton content={`${config.siteUrl}/player/${id}`}>
|
||||
<CopyButton content={`${config.publicUrl}/player/${id}`}>
|
||||
<ContextMenuItem>Copy Share URL</ContextMenuItem>
|
||||
</CopyButton>
|
||||
</ContextMenuContent>
|
||||
|
@ -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;
|
||||
|
@ -31,7 +31,7 @@ export function ServerView({ server, favicon }: ServerViewProps): ReactElement {
|
||||
>
|
||||
{/* Favicon */}
|
||||
<Image
|
||||
src={favicon || `${config.apiUrl}/server/icon/fallback`}
|
||||
src={favicon || `${config.apiEndpoint}/server/icon/fallback`}
|
||||
alt={`${server.hostname}'s Favicon`}
|
||||
width={64}
|
||||
height={64}
|
||||
|
@ -15,22 +15,22 @@ export const viewport: Viewport = {
|
||||
};
|
||||
|
||||
export const metadata: Metadata = {
|
||||
metadataBase: new URL(config.siteUrl),
|
||||
metadataBase: new URL(config.publicUrl),
|
||||
title: {
|
||||
template: config.siteName + " - %s",
|
||||
default: config.siteName,
|
||||
template: "%s - " + config.name,
|
||||
default: config.name,
|
||||
},
|
||||
description: config.siteDescription,
|
||||
description: config.description,
|
||||
keywords: "Minecraft, APIs, wrapper, utility, development",
|
||||
openGraph: {
|
||||
title: config.siteName,
|
||||
description: config.siteDescription,
|
||||
url: config.siteUrl,
|
||||
title: config.name,
|
||||
description: config.description,
|
||||
url: config.publicUrl,
|
||||
locale: "en_US",
|
||||
type: "website",
|
||||
images: [
|
||||
{
|
||||
url: `${config.siteUrl}/media/logo.png`,
|
||||
url: `${config.publicUrl}/media/logo.png`,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user