Skip to content

Commit c252060

Browse files
committed
Update [[...tool]].tsx
1 parent 2da6da4 commit c252060

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pages/studio/[[...tool]].tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@ import { Studio } from 'sanity'
22
import config from 'sanity.config'
33

44
export default function StudioPage() {
5-
return <Studio config={config} unstable_noAuthBoundary />
5+
return <Studio config={config}
6+
7+
// Turn off login in production so that anyone can look around in the Studio and see how it works
8+
// eslint-disable-next-line no-process-env
9+
unstable_noAuthBoundary={process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'}
10+
/>
611
}

0 commit comments

Comments
 (0)