function NextPage(props) {
}
// This gets called on every request
export async function getServerSideProps() {
return { props: { } }
}
export default NextPage;
Next page with getServerSideProps
If you export a function called getServerSideProps
(Server-Side Rendering) from a page, Next.js
will pre-render this page on each request using the data returned by getServerSideProps.
Library: next
Shortcut: next.page.server.props.create
Filename pattern: *pages/*.jsx
0 Comments
Add Comment
Log in to add a comment