switch to local assets for the logo
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m6s

This commit is contained in:
Lee 2024-04-19 22:39:16 +01:00
parent a3e9411c97
commit 31b831f97b
3 changed files with 3 additions and 2 deletions

BIN
public/media/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

@ -1,5 +1,6 @@
import Image from "next/image";
import { ReactElement } from "react";
import config from "@root/config.json";
type LogoProps = {
/**
@ -11,7 +12,7 @@ type LogoProps = {
export default function Logo({ size = 30 }: LogoProps): ReactElement {
return (
<Image
src="https://git.fascinated.cc/MinecraftUtilities/Assets/raw/branch/master/logo.png"
src={`/media/logo.png`}
alt={"The Logo"}
width={size}
height={size}

@ -30,7 +30,7 @@ export const metadata: Metadata = {
type: "website",
images: [
{
url: "https://git.fascinated.cc/MinecraftUtilities/Assets/raw/branch/master/logo.png",
url: `${config.siteUrl}/media/logo.png`,
},
],
},