next.js/test/e2e/switchable-runtime/pages/node-ssg.js
node-ssg.js27 lines380 B
import Runtime from '../utils/runtime'
import Time from '../utils/time'

export default function Page({ type }) {
  return (
    <div>
      This is a {type} page.
      <br />
      <Runtime />
      <br />
      <Time />
    </div>
  )
}

export function getStaticProps() {
  return {
    props: {
      type: 'SSG',
    },
  }
}

export const config = {
  runtime: 'nodejs',
}
Quest for Codev2.0.0
/
SIGN IN