mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Try showing prop data on 404
This commit is contained in:
parent
c3a58ce424
commit
74d2ae26b0
2 changed files with 6 additions and 5 deletions
|
|
@ -1,9 +1,10 @@
|
||||||
import Layout from '@/components/layout/default.js'
|
import Layout from '@/components/layout/default.js'
|
||||||
|
|
||||||
function NotFound() {
|
function NotFound( props ) {
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<div>Not Found</div>
|
<div>Not Found</div>
|
||||||
|
<pre>{ JSON.stringify(props, null, '\t') }</pre>
|
||||||
</Layout>
|
</Layout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { promises as fs } from 'fs'
|
||||||
|
|
||||||
import Layout from '@/components/layout/default.js'
|
import Layout from '@/components/layout/default.js'
|
||||||
|
|
||||||
function HomebrewFormula({ payload }) {
|
function HomebrewFormula( props ) {
|
||||||
// const {
|
// const {
|
||||||
// app
|
// app
|
||||||
// } = payload
|
// } = payload
|
||||||
|
|
@ -10,7 +10,7 @@ function HomebrewFormula({ payload }) {
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
{/* <div className='text-9xl font-bold'>{ app.name }</div> */}
|
{/* <div className='text-9xl font-bold'>{ app.name }</div> */}
|
||||||
<pre>{ JSON.stringify(payload, null, '\t') }</pre>
|
<pre>{ JSON.stringify(props, null, '\t') }</pre>
|
||||||
</Layout>
|
</Layout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -43,7 +43,7 @@ export async function getStaticProps({ params }) {
|
||||||
|
|
||||||
// console.log('endpointListings', endpointListings[0])
|
// console.log('endpointListings', endpointListings[0])
|
||||||
|
|
||||||
let pageListing = null
|
let pageListing = allEndpointListings[0]
|
||||||
|
|
||||||
const start = '/formula/'
|
const start = '/formula/'
|
||||||
|
|
||||||
|
|
@ -70,7 +70,7 @@ export async function getStaticProps({ params }) {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// The Twitter API most likely died
|
// The Twitter API most likely died
|
||||||
console.error(error)
|
console.error(error)
|
||||||
return { notFound: true }
|
return { notFound: true, error }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue