-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix another case with app router revalidation (#51076)
This ensures we don't attempt streaming a response during revalidation in deployed environments. x-ref: #51062 x-ref: [slack thread](https://vercel.slack.com/archives/C03S8ED1DKM/p1686216024812579)
- Loading branch information
Showing
4 changed files
with
80 additions
and
17 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
3 changes: 2 additions & 1 deletion
3
...e/response-cache/app/app/app-blog/page.js → ...esponse-cache/app/app/app-another/page.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
20 changes: 20 additions & 0 deletions
20
test/production/standalone-mode/response-cache/app/app/app-blog/[...slug]/page.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,20 @@ | ||
export const revalidate = 1 | ||
|
||
export function generateStaticParams() { | ||
return [ | ||
{ | ||
slug: ['compare'], | ||
}, | ||
] | ||
} | ||
|
||
export default function Page({ params: { slug } }) { | ||
console.log('rendering app-blog') | ||
return ( | ||
<> | ||
<p>/app-blog</p> | ||
<p>slug {JSON.stringify(slug)}</p> | ||
<p>Date: {Date.now()}</p> | ||
</> | ||
) | ||
} |
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