mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 02:36:30 +02:00
16 lines
422 B
TypeScript
16 lines
422 B
TypeScript
import { GetStaticProps } from "next";
|
|
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
|
|
|
|
export { default } from "@/components/support";
|
|
|
|
export const getStaticProps: GetStaticProps = async ({ locale = "en" }) => {
|
|
try {
|
|
return {
|
|
props: {
|
|
...(await serverSideTranslations(locale, ["homepage", "support"])),
|
|
},
|
|
};
|
|
} catch {
|
|
return { notFound: true };
|
|
}
|
|
};
|