Migrate: `/maintenance` page group (#13056)

This commit is contained in:
Benny Joo 2024-01-11 02:58:38 +00:00 committed by GitHub
parent aaeea250bc
commit f186d2e41d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import LegacyPage from "@pages/maintenance";
import { _generateMetadata } from "app/_utils";
import { WithLayout } from "app/layoutHOC";
import { APP_NAME } from "@calcom/lib/constants";
export const generateMetadata = async () =>
await _generateMetadata(
(t) => `${t("under_maintenance")} | ${APP_NAME}`,
(t) => t("under_maintenance_description", { appName: APP_NAME })
);
// @ts-expect-error Page type
export default WithLayout({ getLayout: null, Page: LegacyPage })<"P">;

View File

@ -1,3 +1,5 @@
"use client";
import Head from "next/head";
import { APP_NAME, WEBSITE_URL } from "@calcom/lib/constants";