We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6d5659 commit 34caf3eCopy full SHA for 34caf3e
1 file changed
src/app/dashboard/[teamIdOrSlug]/sandboxes/[sandboxId]/layout.tsx
@@ -3,6 +3,7 @@ import SandboxDetailsHeader from '@/features/dashboard/sandbox/header'
3
import SandboxDetailsTabs from '@/features/dashboard/sandbox/tabs'
4
import { resolveTeamIdInServerComponent } from '@/lib/utils/server'
5
import { getSandboxDetails } from '@/server/sandboxes/get-sandbox-details'
6
+import { notFound } from 'next/navigation'
7
8
export const fetchCache = 'default-cache'
9
@@ -21,7 +22,7 @@ export default async function SandboxLayout({
21
22
const res = await getSandboxDetails({ teamId, sandboxId })
23
24
if (!res?.data || res?.serverError) {
- throw new Error(res?.serverError || 'Unable to get sandbox details')
25
+ throw notFound()
26
}
27
28
return (
0 commit comments