This commit is contained in:
mantikoros 2021-12-15 21:45:31 -06:00
parent 5206121579
commit 3691ef81ed

View File

@ -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()