From 52061215797fc7df8dbf17ee1399ff8d21dc91a4 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 15 Dec 2021 21:42:05 -0600 Subject: [PATCH] ContractPage: static paths blocking --- web/pages/[username]/[contractId].tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/pages/[username]/[contractId].tsx b/web/pages/[username]/[contractId].tsx index 28bccd5e..ad756907 100644 --- a/web/pages/[username]/[contractId].tsx +++ b/web/pages/[username]/[contractId].tsx @@ -11,6 +11,7 @@ import { Col } from '../../components/layout/col' import { useUser } from '../../hooks/use-user' import { ResolutionPanel } from '../../components/resolution-panel' import { Contract, getContract } from '../../lib/firebase/contracts' + export async function getStaticProps({ params }: { params: any }) { console.log('params', params) const contract = await getContract(params.contractId) @@ -25,7 +26,7 @@ export async function getStaticProps({ params }: { params: any }) { export async function getStaticPaths() { return { paths: [], - fallback: true, + fallback: 'blocking', } }