We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2b6c9f commit d75e0f2Copy full SHA for d75e0f2
app/[domain]/layout.tsx
@@ -12,10 +12,10 @@ export async function generateMetadata({
12
params,
13
}: {
14
params: { domain: string };
15
-}): Promise<Metadata> {
+}): Promise<Metadata | null> {
16
const data = await getSiteData(params.domain);
17
if (!data) {
18
- notFound();
+ return null;
19
}
20
const {
21
name: title,
app/[domain]/not-found.tsx
@@ -1,7 +1,6 @@
1
import Image from "next/image";
2
3
export default function NotFound() {
4
- console.log("404 on app/[domain]/not-found.tsx");
5
return (
6
<div className="flex flex-col items-center justify-center">
7
<h1 className="font-cal text-4xl">404</h1>
0 commit comments