1
0
mirror of https://github.com/XFox111/my-website.git synced 2026-04-22 07:28:01 +03:00

fix: DOMAIN_NAME variable partially baked in on build time

This commit is contained in:
2024-08-21 12:08:54 +00:00
parent 15b69d7e42
commit a217d0a96a
4 changed files with 53 additions and 43 deletions
+8 -4
View File
@@ -1,6 +1,7 @@
import { textCorrection } from "@/_assets/decorations";
import { Home24Regular } from "@fluentui/react-icons";
import { Metadata } from "next";
import { unstable_noStore } from "next/cache";
import Image from "next/image";
import React from "react";
import { notFoundImage } from "./_assets/illustrations";
@@ -8,11 +9,14 @@ import Button from "./_components/Button";
import { canonicalName, getTitle } from "./_data/metadata";
import cls from "./not-found.module.scss";
export const metadata: Metadata =
export async function generateMetadata(): Promise<Metadata>
{
title: getTitle("Page not found", canonicalName.hostname),
robots: "noindex"
};
unstable_noStore();
return {
title: getTitle("Page not found", canonicalName.hostname),
robots: "noindex"
};
}
// [SPECIAL]