mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-20 12:26:20 +02:00
First public commit
This commit is contained in:
commit
e05cd62e53
228 changed files with 17717 additions and 0 deletions
15
pages/support.tsx
Normal file
15
pages/support.tsx
Normal file
|
@ -0,0 +1,15 @@
|
|||
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 };
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue