-
-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core, lambda-at-edge): properly encoded URIs for ISR (#2038)
- Loading branch information
Showing
5 changed files
with
64 additions
and
2 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
30 changes: 30 additions & 0 deletions
30
packages/e2e-tests/next-app/pages/revalidated-ssg-pages-2/[title].tsx
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,30 @@ | ||
import React from "react"; | ||
import { GetStaticPaths, GetStaticPropsResult } from "next"; | ||
|
||
type SSGPageProps = { | ||
date: string; | ||
}; | ||
|
||
export default function RevalidatedSSGPage(props: SSGPageProps): JSX.Element { | ||
return ( | ||
<React.Fragment> | ||
<div> | ||
<p data-cy="date-text">{props.date}</p> | ||
</div> | ||
</React.Fragment> | ||
); | ||
} | ||
|
||
export function getStaticPaths() { | ||
const paths = [{ params: { title: "with space" } }]; | ||
return { paths, fallback: true }; | ||
} | ||
|
||
export function getStaticProps(): GetStaticPropsResult<SSGPageProps> { | ||
return { | ||
revalidate: 10, | ||
props: { | ||
date: new Date().toJSON() | ||
} | ||
}; | ||
} |
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
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