Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send Credentials for
getServerSideProps
Requests (#10826)
* Send Credentials for `getServerSideProps` Requests * Fix tests
- Loading branch information
Showing
5 changed files
with
71 additions
and
3 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
15 changes: 15 additions & 0 deletions
15
test/integration/getserversideprops-preview/pages/to-index.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,15 @@ | ||
import Link from 'next/link' | ||
|
||
export function getServerSideProps() { | ||
return { props: {} } | ||
} | ||
|
||
export default function() { | ||
return ( | ||
<main> | ||
<Link href="/"> | ||
<a id="to-index">To Index</a> | ||
</Link> | ||
</main> | ||
) | ||
} |
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,15 @@ | ||
import Link from 'next/link' | ||
|
||
export function getStaticProps() { | ||
return { props: {} } | ||
} | ||
|
||
export default function() { | ||
return ( | ||
<main> | ||
<Link href="/"> | ||
<a id="to-index">To Index</a> | ||
</Link> | ||
</main> | ||
) | ||
} |
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