We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2da6da4 commit c252060Copy full SHA for c252060
pages/studio/[[...tool]].tsx
@@ -2,5 +2,10 @@ import { Studio } from 'sanity'
2
import config from 'sanity.config'
3
4
export default function StudioPage() {
5
- return <Studio config={config} unstable_noAuthBoundary />
+ 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
+ />
11
}
0 commit comments