Skip to content

Commit 275be6e

Browse files
committed
fix: enable using the direct queue for isr
1 parent f7de009 commit 275be6e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-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>

0 commit comments

Comments
 (0)