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;