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 { useUser } from '../../hooks/use-user'
import { ResolutionPanel } from '../../components/resolution-panel' import { ResolutionPanel } from '../../components/resolution-panel'
import { Contract, getContract } from '../../lib/firebase/contracts' import { Contract, getContract } from '../../lib/firebase/contracts'
export async function getStaticProps({ params }: { params: any }) { export async function getStaticProps({ params }: { params: any }) {
console.log('params', params) console.log('params', params)
const contract = await getContract(params.contractId) const contract = await getContract(params.contractId)
@ -25,7 +26,7 @@ export async function getStaticProps({ params }: { params: any }) {
export async function getStaticPaths() { export async function getStaticPaths() {
return { return {
paths: [], paths: [],
fallback: true, fallback: 'blocking',
} }
} }