Skip to content

Commit d468b84

Browse files
committed
fix: enable using the direct queue for isr
1 parent a630aea commit d468b84

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

examples/e2e/app-router/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function Home() {
2222
<Nav href={"/isr"} title="ISR">
2323
Incremental Static Regeneration revalidates every 10 seconds with a new timestamp
2424
</Nav>
25-
<Nav href={"/ssr"} title="SSR">
25+
<Nav href={"/ssr"} title="SSR" prefetch={false}>
2626
Server Side Render should generate a new timestamp on each load. Streaming support for loading...
2727
</Nav>
2828
<Nav href={"/api"} title="API">

examples/e2e/shared/components/Nav/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ type Props = PropsWithChildren & {
66
href: string;
77
title: string;
88
icon?: string;
9+
prefetch?: boolean;
910
};
1011
export default function Nav(p: Props) {
11-
const { children, href, title, icon = "/static/frank.webp" } = p;
12+
const { children, href, title, icon = "/static/frank.webp", prefetch } = p;
1213
return (
13-
<Link href={href} className="flex flex-col group border p-2 rounded-sm border-orange-500">
14+
<Link
15+
href={href}
16+
className="flex flex-col group border p-2 rounded-sm border-orange-500"
17+
prefetch={prefetch}
18+
>
1419
<div className="flex items-center relative">
1520
<div>{title}</div>
1621
<div>

examples/next-partial-prerendering/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"name": "next-partial-prerendering",
23
"private": true,
34
"name": "next-partial-prerendering",
45
"scripts": {

0 commit comments

Comments
 (0)