-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy path404.tsx
More file actions
31 lines (27 loc) 路 653 Bytes
/
Copy path404.tsx
File metadata and controls
31 lines (27 loc) 路 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import MetaConfig from "@/components/MetaConfig"
import CustomError from "@/routes/Error"
import { NextPageWithLayout, TPosts, TTags } from "@/types"
import { CONFIG } from "site.config"
type Props = {
tags: TTags
posts: TPosts
}
const NotFoundPage: NextPageWithLayout<Props> = () => {
return <CustomError />
}
NotFoundPage.getLayout = (page) => {
return (
<>
<MetaConfig
{...{
title: CONFIG.blog.title,
description: CONFIG.blog.description,
type: "website",
url: CONFIG.link,
}}
/>
{page}
</>
)
}
export default NotFoundPage