chore: migrate /auth/error (#18730)
* migrate auth/error * fix * fix type check
This commit is contained in:
1 parent
78a6963cd9
commit
de05e8e989
11 files changed
+51
-53
No files matched your search
@@ -1,14 +0,0 @@
|
||||
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,
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user