export function getServerSideProps({ res, preview, previewData }) { // test override in preview mode res.setHeader('Cache-Control', 'public, max-age=3600') return { props: { hasProps: true, preview: !!preview, previewData: previewData || null, }, } } export default function({ hasProps, preview, previewData }) { if (!hasProps) { return
Has No Props
} return (
      {JSON.stringify(preview) + ' and ' + JSON.stringify(previewData)}
    
) }