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 { 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',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user