import Link from 'next/link' import path from 'path' import fs from 'fs' export async function getServerSideProps() { const text = fs .readFileSync(path.join(process.cwd(), 'world.txt'), 'utf8') .trim() return { props: { world: text, time: new Date().getTime(), }, } } export default ({ world, time }) => ( <>

hello {world}

time: {time} to home
to something )