ContractPage: static paths blocking
This commit is contained in:
parent
fe0d666c2b
commit
5206121579
|
@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user