Files
calendar/apps/web/server/lib/auth/error/getStaticProps.ts
T
Benny JooandGitHub 26be88fc56 chore: App-router-migration /auth/error, /auth/platform, /auth/oauth2 (#16445)
* preparePageMetadata: improve logic for title

* add missing pages: oauth2 / platform

* auth/error: add to app router and extract to /modules
2024-09-04 13:15:19 +00:00

15 lines
386 B
TypeScript

import type { GetStaticPropsContext, InferGetStaticPropsType } from "next";
import { getTranslations } from "@server/lib/getTranslations";
export type PageProps = InferGetStaticPropsType<typeof getStaticProps>;
export const getStaticProps = async (context: GetStaticPropsContext) => {
const i18n = await getTranslations(context);
return {
props: {
i18n,
},
};
};