Skip to content

Commit

Permalink
Update page.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanshahriar32 authored Oct 21, 2024
1 parent 6d66f64 commit 1b56c06
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/studio/[[...index]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@ export const dynamic = 'force-static'
export { metadata, viewport } from 'next-sanity/studio'

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

0 comments on commit 1b56c06

Please sign in to comment.