diff --git a/apps/web-2/package.json b/apps/web-2/package.json index f5155d5..c19d1d3 100644 --- a/apps/web-2/package.json +++ b/apps/web-2/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev --turbopack", + "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" diff --git a/apps/web-2/public/.gitkeep b/apps/web-2/public/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/web-2/public/file.svg b/apps/web-2/public/file.svg deleted file mode 100644 index 004145c..0000000 --- a/apps/web-2/public/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/web-2/public/globe.svg b/apps/web-2/public/globe.svg deleted file mode 100644 index 567f17b..0000000 --- a/apps/web-2/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/web-2/public/next.svg b/apps/web-2/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/apps/web-2/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/web-2/public/og-home.jpg b/apps/web-2/public/og-home.jpg deleted file mode 100644 index 0cb6c27..0000000 Binary files a/apps/web-2/public/og-home.jpg and /dev/null differ diff --git a/apps/web-2/public/vercel.svg b/apps/web-2/public/vercel.svg deleted file mode 100644 index 7705396..0000000 --- a/apps/web-2/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/web-2/public/window.svg b/apps/web-2/public/window.svg deleted file mode 100644 index b2b2a44..0000000 --- a/apps/web-2/public/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/web-2/src/app/about/page.tsx b/apps/web-2/src/app/about/page.tsx index decef4e..1705367 100644 --- a/apps/web-2/src/app/about/page.tsx +++ b/apps/web-2/src/app/about/page.tsx @@ -37,6 +37,14 @@ export const metadata: Metadata = { alternates: { canonical: 'https://fedeminaya.com/about', }, + openGraph: { + images: [ + { + type: 'image/jpeg', + url: 'https://fedeminaya.com/og?page=About', + }, + ], + }, }; export default function About() { diff --git a/apps/web-2/src/app/fonts/GeistMonoVF.woff b/apps/web-2/src/app/fonts/GeistMonoVF.woff deleted file mode 100644 index f2ae185..0000000 Binary files a/apps/web-2/src/app/fonts/GeistMonoVF.woff and /dev/null differ diff --git a/apps/web-2/src/app/fonts/GeistVF.woff b/apps/web-2/src/app/fonts/GeistVF.woff deleted file mode 100644 index 1b62daa..0000000 Binary files a/apps/web-2/src/app/fonts/GeistVF.woff and /dev/null differ diff --git a/apps/web-2/src/app/layout.tsx b/apps/web-2/src/app/layout.tsx index 00f7acf..79b3073 100644 --- a/apps/web-2/src/app/layout.tsx +++ b/apps/web-2/src/app/layout.tsx @@ -33,7 +33,7 @@ export const metadata: Metadata = { images: [ { type: 'image/jpeg', - url: 'https://fedeminaya.com/og-home.jpg', + url: 'https://fedeminaya.com/og', }, ], }, diff --git a/apps/web-2/src/app/og/route.tsx b/apps/web-2/src/app/og/route.tsx new file mode 100644 index 0000000..5e2940f --- /dev/null +++ b/apps/web-2/src/app/og/route.tsx @@ -0,0 +1,57 @@ +import { ImageResponse } from 'next/og'; + +export const runtime = 'edge'; + +export const GET = async (req: Request) => { + const url = new URL(req.url); + + const page = url.searchParams.get('page'); + + const fontRegular = fetch( + new URL('../../assets/fonts/JetBrainsMono-Regular.ttf', import.meta.url) + ).then((res) => res.arrayBuffer()); + + const fontBold = fetch( + new URL('../../assets/fonts/JetBrainsMono-Bold.ttf', import.meta.url) + ).then((res) => res.arrayBuffer()); + + return new ImageResponse( + ( +