mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
* Rename getServerProps to getServerSideProps * Remove unstable_ prefix from new methods * Add error when legacy methods are detected * Add legacy methods for babel transform * Add unstable_getServerSideProps also * Apply suggestions from code review Co-Authored-By: Joe Haddad <[email protected]> * Update types import Co-authored-by: Joe Haddad <[email protected]>
6 lines
155 B
JavaScript
6 lines
155 B
JavaScript
export async function getStaticPaths() {
|
|
return { paths: ['/hello', '/world'], fallback: true }
|
|
}
|
|
|
|
export default () => <p>something is missing 🤔</p>
|