Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`
- Loading branch information
Showing
3 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default function Nodejs() { | ||
return 'nodejs' | ||
} | ||
|
||
// export an identifier instead of function | ||
export const getServerSideProps = async () => { | ||
return { props: {} } | ||
} | ||
|
||
export const config = { | ||
runtime: 'experimental-edge', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters