Files
1494283a74 fix: Add Next-Url to http vary in consideration of intercept routes. (#52746)
### Why

We calculate the “next url” depending on the router state and the previous router state so that when you navigate to a route, the proxy matches with that header and returns you the intercepted route if matching

### What 
- Fixes #52745




Co-authored-by: Jiachi Liu <[email protected]>
2023-07-22 21:38:23 +00:00

23 lines
461 B
JavaScript

import Link from 'next/link'
export const revalidate = 0
async function getData() {
await new Promise((resolve) => setTimeout(resolve, 3000))
return {
message: 'Welcome to the dashboard',
}
}
export default async function DashboardPage(props) {
const { message } = await getData()
return (
<>
<p id="dashboard-page">{message}</p>
<Link href="/static-page" id="to-static-page">
To Static Page
</Link>
</>
)
}