diff options
| author | 2023-04-18 03:02:17 +0800 | |
|---|---|---|
| committer | 2023-04-18 03:02:17 +0800 | |
| commit | 4919f028c884a041da7ff098abb02389b4eac598 (patch) | |
| tree | b0f482568c4b8c8a680ce6e2e70a7b7ca87dc190 /app/head.tsx | |
| parent | b135aac8531c1e1488147ad8c6f98eddbdbe0c99 (diff) | |
| download | HydroRoll-4919f028c884a041da7ff098abb02389b4eac598.tar.gz HydroRoll-4919f028c884a041da7ff098abb02389b4eac598.zip | |
✨add envshare docs
Diffstat (limited to 'app/head.tsx')
| -rw-r--r-- | app/head.tsx | 42 |
1 files changed, 0 insertions, 42 deletions
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 ( - <> - <title>EnvShare</title> - <meta content="width=device-width, initial-scale=1" name="viewport" /> - <meta name="description" content={subtitle} /> - <meta name="theme-color" content="#000000" /> - <meta name="title" content={title} /> - <meta name="keywords" content="envshare, secure, secrets, share, environment, variables" /> - <meta name="language" content="English" /> - <meta name="revisit-after" content="7 days" /> - <meta name="robots" content="all" /> - <meta httpEquiv="Content-Type" content="text/html; charset=utf-8" /> - - {/* Open Graph / Facebook */} - <meta property="og:type" content="website" /> - <meta property="og:url" content={baseUrl} /> - <meta property='og:image' content={url.toString()} /> - <meta property='og:title' content={title} /> - <meta property='og:description' content={subtitle} /> - <meta property="og:image:width" content="1200" /> - <meta property="og:image:height" content="630" /> - - {/* Twitter */} - <meta property="twitter:card" content="summary_large_image" /> - <meta property="twitter:url" content={baseUrl} /> - <meta property="twitter:title" content={title} /> - <meta property="twitter:description" content={subtitle} /> - <meta property="twitter:image" content={url.toString()} /> - </> - ); -} |
