From 32e6494072f5c2cce17b28dd1dece230add18863 Mon Sep 17 00:00:00 2001 From: Mark Vujevits Date: Mon, 27 Feb 2023 10:28:38 +0100 Subject: [PATCH] use ssr on main page --- packages/app/src/pages/stakers/[slug].tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/app/src/pages/stakers/[slug].tsx b/packages/app/src/pages/stakers/[slug].tsx index 19010850..4567d96d 100644 --- a/packages/app/src/pages/stakers/[slug].tsx +++ b/packages/app/src/pages/stakers/[slug].tsx @@ -260,7 +260,7 @@ const TokenWrapper: FC<{ config?: TenderizeConfig }> = (props) => { ); }; -export const getStaticProps = async () => { +export const getServerSideProps = async () => { const CHAIN_URL_MAPPING = { [ChainId.Mainnet]: process.env.RPC_ETHEREUM ?? "", [ChainId.Arbitrum]: process.env.RPC_ARBITRUM ?? "", @@ -279,11 +279,4 @@ export const getStaticProps = async () => { }; }; -export const getStaticPaths = async () => { - return { - paths: Object.values(stakers).map((staker) => ({ params: { slug: staker.name } })), - fallback: false, - }; -}; - export default TokenWrapper;