diff --git a/pages/index.js b/pages/index.js index a2409a4..0a36556 100644 --- a/pages/index.js +++ b/pages/index.js @@ -13,14 +13,9 @@ import ComparisonView from '../lib/comparisonView.js' const elementsDocument = '../data/listOfMoralGoods.json' /* React components */ -// fs can only be used here. export async function getStaticProps() { - //getServerSideProps - // const { metaforecasts } = await getForecasts(); const directory = path.join(process.cwd(), "pages") let listOfElementsForView = JSON.parse(fs.readFileSync(path.join(directory, elementsDocument), 'utf8')); - //console.log(directory) - //console.log("metaforecasts", metaforecasts) return { props: { listOfElementsForView diff --git a/pages/research.js b/pages/research.js index 41d1188..545f18b 100644 --- a/pages/research.js +++ b/pages/research.js @@ -15,12 +15,8 @@ const elementsDocument = '../data/listOfResearchOutputs.json' /* React components */ // fs can only be used here. export async function getStaticProps() { - //getServerSideProps - // const { metaforecasts } = await getForecasts(); const directory = path.join(process.cwd(), "pages") let listOfElementsForView = JSON.parse(fs.readFileSync(path.join(directory, elementsDocument), 'utf8')); - //console.log(directory) - //console.log("metaforecasts", metaforecasts) return { props: { listOfElementsForView