From 4919f028c884a041da7ff098abb02389b4eac598 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Tue, 18 Apr 2023 03:02:17 +0800 Subject: ✨add envshare docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/head.tsx | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 app/head.tsx (limited to 'app/head.tsx') diff --git a/app/head.tsx b/app/head.tsx deleted file mode 100644 index aecaa44..0000000 --- a/app/head.tsx +++ /dev/null @@ -1,42 +0,0 @@ -export default function Head({ title, subtitle }: { title: string; subtitle: string }) { - // Fallback tagline - title ??= "Share Environment Variables Securely"; - subtitle ??= "EnvShare"; - - const baseUrl = process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "http://localhost:3000"; - - const url = new URL("/api/v1/og", baseUrl); - url.searchParams.set("title", title); - url.searchParams.set("subtitle", subtitle); - - return ( - <> - EnvShare - - - - - - - - - - - {/* Open Graph / Facebook */} - - - - - - - - - {/* Twitter */} - - - - - - - ); -} -- cgit v1.2.3-70-g09d2