From c46cda12ebaa0fe859fd6e19edafbd5ab06ee887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Mon, 15 Dec 2025 11:16:56 +0100 Subject: [PATCH] docs: fix og for tools --- apps/public/src/app/og/[...og]/route.tsx | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/apps/public/src/app/og/[...og]/route.tsx b/apps/public/src/app/og/[...og]/route.tsx index 47ea4bc0..5ddd78ed 100644 --- a/apps/public/src/app/og/[...og]/route.tsx +++ b/apps/public/src/app/og/[...og]/route.tsx @@ -84,6 +84,34 @@ async function getOgData( data?.data.description || 'Whooops, could not find this page', }; } + case 'tools': { + if (segments.length > 1) { + const tool = segments[1]; + switch (tool) { + case 'ip-lookup': + return { + title: 'IP Lookup Tool', + description: + 'Find detailed information about any IP address including geolocation, ISP, and network details.', + }; + case 'url-checker': + return { + title: 'URL Checker', + description: + 'Analyze any website for SEO, social media, technical, and security information. Get comprehensive insights about any URL.', + }; + default: + return { + title: 'Tools', + description: 'Free web tools for developers and website owners', + }; + } + } + return { + title: 'Tools', + description: 'Free web tools for developers and website owners', + }; + } default: { const data = await pageSource.getPage(segments); return {