Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: run prettier

Marc Seitzcdf33543f135
diff --git a/app/api/og/route.tsx b/app/api/og/route.tsx
index 0e3c1086..82aab550 100644
--- a/app/api/og/route.tsx
+++ b/app/api/og/route.tsx
@@ -1,29 +1,25 @@
/* eslint-disable @next/next/no-img-element */
-import { ImageResponse } from 'next/og'
-import { NextRequest } from 'next/server'
+import { ImageResponse } from "next/og";
+import { NextRequest } from "next/server";
-export const runtime = 'edge'
+export const runtime = "edge";
/**
* @name Headline Template
* @description Make it pop with a headline
*/
export async function GET(request: NextRequest) {
- const searchParams = request.nextUrl.searchParams
- const title = searchParams.get('title') || 'Papermark'
+ const searchParams = request.nextUrl.searchParams;
+ const title = searchParams.get("title") || "Papermark";
const Inter = await fetch(
- new URL('@/public/_static/Inter-Bold.ttf', import.meta.url),
- ).then((res) => res.arrayBuffer())
+ new URL("@/public/_static/Inter-Bold.ttf", import.meta.url),
+ ).then((res) => res.arrayBuffer());
return new ImageResponse(
(
<div tw="flex flex-col items-center justify-between w-full h-full bg-white text-black p-12">
- <div tw="text-[32px] flex items-center">
- Papermark
- </div>
- <div tw="text-[42px] text-center">
- {title}
- </div>
+ <div tw="text-[32px] flex items-center tracking-tighter">Papermark</div>
+ <div tw="text-[42px] text-center">{title}</div>
<div tw="text-[32px] flex items-center">
Open-Source Document Sharing
</div>
@@ -33,14 +29,14 @@ export async function GET(request: NextRequest) {
width: 1200,
height: 630,
headers: {
- 'Cache-Control': 'public, max-age=3600, immutable',
+ "Cache-Control": "public, max-age=3600, immutable",
},
fonts: [
{
- name: 'Inter',
+ name: "Inter",
data: Inter,
},
],
},
- )
+ );
}
diff --git a/pages/view/[linkId]/index.tsx b/pages/view/[linkId]/index.tsx
index 643c655a..19caa5aa 100644
--- a/pages/view/[linkId]/index.tsx
+++ b/pages/view/[linkId]/index.tsx
@@ -120,7 +120,9 @@ export default function ViewPage({
<>
<CustomMetatag
enableBranding={meta?.enableCustomMetatag ?? false}
- title={meta?.metaTitle ?? link?.document?.name ?? 'Papermark Document'}
+ title={
+ meta?.metaTitle ?? link?.document?.name ?? "Papermark Document"
+ }
description={meta?.metaDescription ?? null}
imageUrl={meta?.metaImage ?? null}
url={`https://www.papermark.io/view/${router.query.linkId}`}