import Head from 'next/head' import dbConnect from '../lib/dbConnect' import { models } from 'shared-stuff' export default function Home({ scanResults }) { return (
Warframe Center
) } export async function getServerSideProps(context) { try { await dbConnect() const scanResults = await models.ScanResult.find({}) return { props: { scanResults: JSON.parse(JSON.stringify(scanResults)) }, } } catch (e) { console.error(e) return { props: {}, } } }