mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Fixes a bug that occurred when prefetching a Link to a dynamic page on a different deployment. I didn't catch this earlier during dogfooding because the app we were testing it on was using skew protection. It also only applies to non-PPR/static routes. This particular case happens when an app is redeployed on the server, but it can also happen when linking to a completely different Next app.
29 lines
695 B
React
29 lines
695 B
React
import { LinkAccordion } from '../components/link-accordion'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<ul>
|
|
<li>
|
|
<LinkAccordion href="/dynamic-page">
|
|
Dynamic page, same deployment
|
|
</LinkAccordion>
|
|
</li>
|
|
<li>
|
|
<LinkAccordion href="/dynamic-page?deployment=2">
|
|
Dynamic page, different deployment
|
|
</LinkAccordion>
|
|
</li>
|
|
<li>
|
|
<LinkAccordion href="/static-page">
|
|
Static page, same deployment
|
|
</LinkAccordion>
|
|
</li>
|
|
<li>
|
|
<LinkAccordion href="/static-page?deployment=2">
|
|
Static page, different deployment
|
|
</LinkAccordion>
|
|
</li>
|
|
</ul>
|
|
)
|
|
}
|