From b0b8b290e6bb6de57f0455ceca071c72dd14e20e Mon Sep 17 00:00:00 2001 From: Kobe Date: Wed, 11 Dec 2024 10:13:53 +0100 Subject: [PATCH] fix: trade detail page --- apps/marginfi-v2-trading/src/pages/trade/[symbol].tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/marginfi-v2-trading/src/pages/trade/[symbol].tsx b/apps/marginfi-v2-trading/src/pages/trade/[symbol].tsx index 880f8ebc0..63f455e54 100644 --- a/apps/marginfi-v2-trading/src/pages/trade/[symbol].tsx +++ b/apps/marginfi-v2-trading/src/pages/trade/[symbol].tsx @@ -14,9 +14,16 @@ import { PositionList } from "~/components/common/Portfolio"; import { PoolTradeHeader } from "~/components/common/Pool/PoolTradeHeader"; import { Loader } from "~/components/common/Loader"; import { ArenaPoolV2 } from "~/store/tradeStoreV2"; -import { GetStaticProps } from "next"; +import { GetStaticPaths, GetStaticProps } from "next"; import { StaticArenaProps, getArenaStaticProps } from "~/utils"; +export const getStaticPaths: GetStaticPaths = async () => { + return { + paths: [], // no pre-rendered paths + fallback: "blocking", // generate pages on-demand + }; +}; + export const getStaticProps: GetStaticProps = async (context) => { return getArenaStaticProps(context); };