Skip to content

Commit 0edfd68

Browse files
committed
improve: cache and link strategy
1 parent 0720110 commit 0edfd68

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/app/dashboard/[teamIdOrSlug]/sandboxes/[sandboxId]/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import SandboxDetailsTabs from '@/features/dashboard/sandbox/tabs'
44
import { resolveTeamIdInServerComponent } from '@/lib/utils/server'
55
import { getSandboxDetails } from '@/server/sandboxes/get-sandbox-details'
66

7+
export const fetchCache = 'default-cache'
8+
79
interface SandboxLayoutProps {
810
children: React.ReactNode
911
params: Promise<{ teamIdOrSlug: string; sandboxId: string }>

src/features/dashboard/sandbox/header.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export default async function SandboxDetailsHeader({
1919
<Link
2020
href={PROTECTED_URLS.SANDBOXES(teamIdOrSlug)}
2121
className="text-fg-300 hover:text-fg flex items-center gap-1.5 transition-colors"
22+
prefetch
23+
shallow
2224
>
2325
<ChevronLeftIcon className="size-5" />
2426
Sandboxes

0 commit comments

Comments
 (0)