From 3691ef81edbe42c7fec207d83ea1b450357f4be5 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 15 Dec 2021 21:45:31 -0600 Subject: [PATCH] test ssr --- web/pages/[username]/[contractId].tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/pages/[username]/[contractId].tsx b/web/pages/[username]/[contractId].tsx index ad756907..fc6b16ae 100644 --- a/web/pages/[username]/[contractId].tsx +++ b/web/pages/[username]/[contractId].tsx @@ -12,7 +12,7 @@ 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 }) { +export async function getServerSideProps({ params }: { params: any }) { console.log('params', params) const contract = await getContract(params.contractId) @@ -23,12 +23,12 @@ export async function getStaticProps({ params }: { params: any }) { } } -export async function getStaticPaths() { - return { - paths: [], - fallback: 'blocking', - } -} +// export async function getStaticPaths() { +// return { +// paths: [], +// fallback: 'blocking', +// } +// } export default function ContractPage({ contract }: { contract: Contract }) { const user = useUser()