fix: add missing metadata to /auth/setup (#19035)
* fix: invalid iCal download link must not crash booking page * fix: add missing metadata to /auth/setup
This commit is contained in:
1 parent
564cc3a394
commit
dde76ed74d
1 file changed
+8
@@ -1,5 +1,6 @@
|
||||
import { withAppDirSsr } from "app/WithAppDirSsr";
|
||||
import type { PageProps as ServerPageProps } from "app/_types";
|
||||
import { _generateMetadata } from "app/_utils";
|
||||
import { cookies, headers } from "next/headers";
|
||||
|
||||
import { buildLegacyCtx } from "@lib/buildLegacyCtx";
|
||||
@@ -9,6 +10,13 @@ import { getServerSideProps } from "@server/lib/setup/getServerSideProps";
|
||||
import Setup from "~/auth/setup-view";
|
||||
import type { PageProps as ClientPageProps } from "~/auth/setup-view";
|
||||
|
||||
export const generateMetadata = async () => {
|
||||
return await _generateMetadata(
|
||||
(t) => t("setup"),
|
||||
(t) => t("setup_description")
|
||||
);
|
||||
};
|
||||
|
||||
const getData = withAppDirSsr<ClientPageProps>(getServerSideProps);
|
||||
|
||||
const ServerPage = async ({ params, searchParams }: ServerPageProps) => {
|
||||
|
||||
Reference in new issue
Block a user