rsnext/test/e2e/switchable-runtime/pages/node-ssr.js
Tim Neutkens aa0ba3c30a
Ensure server components entries are not part of the pages buildmanifest (#38416)
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-07-07 22:17:17 +02:00

26 lines
384 B
JavaScript

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 getServerSideProps() {
return {
props: {
type: 'SSR',
},
}
}
export const config = {
runtime: 'nodejs',
}