Skip to content

Commit 64bec9f

Browse files
committed
Show internal pages in Vercel Previews
1 parent 4e1f601 commit 64bec9f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app/(development)/layout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ export default function DevelopmentLayout({
1111
}: {
1212
children: React.ReactNode
1313
}) {
14-
if (process.env.NODE_ENV !== "development") notFound()
14+
if (
15+
process.env.NODE_ENV !== "development" &&
16+
process.env.VERCEL_ENV !== "preview"
17+
) {
18+
notFound()
19+
}
1520

1621
return (
1722
<>

0 commit comments

Comments
 (0)