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