-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deployment id header for rsc payload if present (#67255)
Add deployment id for skew protection into RSC payload --------- Co-authored-by: JJ Kasper <[email protected]>
- Loading branch information
Showing
6 changed files
with
72 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
24 changes: 24 additions & 0 deletions
24
test/production/deployment-id-handling/app/app/other-app/page.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,24 @@ | ||
'use client' | ||
import testImage from '../../public/test.jpg' | ||
import Image from 'next/image' | ||
|
||
export default function Page() { | ||
return ( | ||
<> | ||
<h1>other app</h1> | ||
<Image src={testImage} alt="test" /> | ||
<p id="deploymentId">{process.env.NEXT_DEPLOYMENT_ID}</p> | ||
|
||
<button | ||
onClick={() => { | ||
import('../../data').then((mod) => { | ||
console.log('loaded data', mod) | ||
}) | ||
}} | ||
id="dynamic-import" | ||
> | ||
click me | ||
</button> | ||
</> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
html { | ||
font-size: 14rem; | ||
font-size: 1.4rem; | ||
color: white; | ||
background: black; | ||
} |
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