Files
Jiachi LiuandGitHub 084ad964a0 Fix static info parsing when export data fetching method as variable (#40317)
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`
2022-09-07 09:28:15 -07:00

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',
}