chore: ♻️ Use hardcoded logo file instead of CDN link for og data

This commit is contained in:
Jesse Wierzbinski 2024-08-28 01:30:11 +02:00
parent 94881b113b
commit 938073110d
No known key found for this signature in database
3 changed files with 5 additions and 2 deletions

View file

@ -6,6 +6,7 @@ import type { Section } from "../components/SectionProvider";
import { Providers } from "./providers"; import { Providers } from "./providers";
import "@/styles/tailwind.css"; import "@/styles/tailwind.css";
import logo from "@/images/branding/logo.webp";
import type { ReactNode } from "react"; import type { ReactNode } from "react";
export const metadata: Metadata = { export const metadata: Metadata = {
@ -18,9 +19,11 @@ export const metadata: Metadata = {
openGraph: { openGraph: {
type: "article", type: "article",
images: { images: {
url: "https://cdn.versia.pub/branding/icon.svg", url: logo.src,
alt: "Versia logo", alt: "Versia logo",
type: "image/svg+xml", type: "image/webp",
width: logo.width,
height: logo.height,
}, },
}, },
}; };

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 14 KiB