Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

Server render homepage (#389)

Luke Vella86e032043245
diff --git a/src/pages/home.tsx b/src/pages/home.tsx
index dc1c31049..7a1f398c2 100644
--- a/src/pages/home.tsx
+++ b/src/pages/home.tsx
@@ -1,9 +1,15 @@
-import { GetStaticProps } from "next";
+import { GetServerSideProps } from "next";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
-export { default } from "@/components/home";
+import Home from "@/components/home";
-export const getStaticProps: GetStaticProps = async ({ locale = "en" }) => {
+const Page = () => <Home />;
+
+export default Page;
+
+export const getServerSideProps: GetServerSideProps = async ({
+ locale = "en",
+}) => {
return {
props: {
...(await serverSideTranslations(locale, ["common", "homepage"])),