ContractPage: static paths blocking

This commit is contained in:
mantikoros 2021-12-15 21:42:05 -06:00
parent fe0d666c2b
commit 5206121579

View File

@ -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',
}
}