mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Fix the ssr/ssg detection when you export a nextjs data fetching method as a variable instead of an async function. - [x] Add case support in `checkExports` - [x] Add unit tests for `getPageStaticInfo`
13 lines
232 B
JavaScript
13 lines
232 B
JavaScript
export default function Nodejs() {
|
|
return 'nodejs'
|
|
}
|
|
|
|
// export an identifier instead of function
|
|
export const getServerSideProps = async () => {
|
|
return { props: {} }
|
|
}
|
|
|
|
export const config = {
|
|
runtime: 'experimental-edge',
|
|
}
|