feat: add meta tags for improved SEO on file not found page
This commit is contained in:
parent
9f04130726
commit
011695cf46
@ -54,6 +54,22 @@ export default async function FilePreviewContainer({
|
|||||||
|
|
||||||
if (!fileDetails) {
|
if (!fileDetails) {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Head>
|
||||||
|
<title>No File Found</title>
|
||||||
|
<meta property="og:title" content="No File Found" />
|
||||||
|
<meta
|
||||||
|
property="og:description"
|
||||||
|
content="The file you are looking for does not exist."
|
||||||
|
/>
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:image" content="/images/no-file.png" />
|
||||||
|
<meta property="og:image:alt" content="No file found" />
|
||||||
|
<meta
|
||||||
|
property="og:url"
|
||||||
|
content={`${process.env.NEXT_PUBLIC_PAGE_URL}/share?id=${fileId}`}
|
||||||
|
/>
|
||||||
|
</Head>
|
||||||
<main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c] text-white">
|
<main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c] text-white">
|
||||||
<Toaster position="top-right" reverseOrder={false} />
|
<Toaster position="top-right" reverseOrder={false} />
|
||||||
<div className="absolute top-4 left-4">
|
<div className="absolute top-4 left-4">
|
||||||
@ -65,6 +81,7 @@ export default async function FilePreviewContainer({
|
|||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user