* preparePageMetadata: improve logic for title * add missing pages: oauth2 / platform * auth/error: add to app router and extract to /modules
15 lines
386 B
TypeScript
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,
|
|
},
|
|
};
|
|
};
|