{"size": 437, "ext": "js", "max_stars_repo_path": "test/integration/getserversideprops/pages/promise/mutate-res-props.js", "max_stars_repo_name": "blomqma/next.js", "max_stars_repo_stars_event_min_datetime": "2016-10-25T15:48:01.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-27T17:47:07.000Z", "max_issues_repo_path": "test/integration/getserversideprops/pages/promise/mutate-res-props.js", "max_issues_repo_name": "blomqma/next.js", "max_issues_repo_issues_event_min_datetime": "2020-05-27T18:15:25.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T23:48:59.000Z", "max_forks_repo_path": "test/integration/getserversideprops/pages/promise/mutate-res-props.js", "max_forks_repo_name": "blomqma/next.js", "max_forks_repo_forks_event_min_datetime": "2020-05-27T18:07:16.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T23:55:30.000Z"}
{"max_stars_count": 51887, "max_issues_count": 13333, "max_forks_count": 14796, "avg_line_length": 20.8095238095, "max_line_length": 67, "alphanum_fraction": 0.5629290618}
export async function getServerSideProps(context) {
  return {
    props: (async function () {
      // Mimic some async work, like getting data from an API
      await new Promise((resolve) => setTimeout(resolve))
      context.res.setHeader('test-header', 'this is a test header')
      return {
        text: 'res',
      }
    })(),
  }
}

export default ({ text }) => {
  return (
    <>
      <div>hello {text}</div>
    </>
  )
}
