Disable stat

This commit is contained in:
Sam Carlton 2021-09-11 16:25:36 -05:00
parent 73ebd03c57
commit b9ec5e9a83

View file

@ -41,13 +41,13 @@ export async function getStaticProps({ params }) {
// return JSON.parse(endpointsJson) // return JSON.parse(endpointsJson)
// }) // })
const allEndpointListings = await fs.stat('./static/eleventy-endpoints.json') // const allEndpointListings = await fs.stat('./static/eleventy-endpoints.json')
const currentDirectory = await fs.readdir('./') const currentDirectory = await fs.readdir('./')
// console.log('endpointListings', endpointListings[0]) // console.log('endpointListings', endpointListings[0])
let pageListing = { let pageListing = {
allEndpointListings, // allEndpointListings,
currentDirectory currentDirectory
} }