test ssr
This commit is contained in:
parent
5206121579
commit
3691ef81ed
|
@ -12,7 +12,7 @@ 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 getServerSideProps({ params }: { params: any }) {
|
||||||
console.log('params', params)
|
console.log('params', params)
|
||||||
const contract = await getContract(params.contractId)
|
const contract = await getContract(params.contractId)
|
||||||
|
|
||||||
|
@ -23,12 +23,12 @@ export async function getStaticProps({ params }: { params: any }) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
// export async function getStaticPaths() {
|
||||||
return {
|
// return {
|
||||||
paths: [],
|
// paths: [],
|
||||||
fallback: 'blocking',
|
// fallback: 'blocking',
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
export default function ContractPage({ contract }: { contract: Contract }) {
|
export default function ContractPage({ contract }: { contract: Contract }) {
|
||||||
const user = useUser()
|
const user = useUser()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user