Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
4 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
16 changes: 16 additions & 0 deletions
16
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/issue-31855/input.js
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,16 @@ | ||
export const revalidateInSeconds = 5 * 60; | ||
|
||
export const getStaticProps = async () => { | ||
return { | ||
props: {}, | ||
revalidate: revalidateInSeconds, | ||
}; | ||
}; | ||
|
||
export default function Home({}) { | ||
return ( | ||
<div> | ||
<p>Hello World</p> | ||
</div> | ||
) | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/issue-31855/output.js
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,5 @@ | ||
export var __N_SSG = true; | ||
export const revalidateInSeconds = 5 * 60; | ||
export default function Home({}) { | ||
return __jsx("div", null, __jsx("p", null, "Hello World")); | ||
}; |