generated from sanity-io/nextjs-blog-cms-sanity-v3
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,17 @@ | ||
import Head from 'next/head' | ||
import { NextStudio } from 'next-sanity/studio' | ||
import { NextStudioHead } from 'next-sanity/studio/head' | ||
import { StudioLayout, StudioProvider } from 'sanity' | ||
import { metadata } from 'next-sanity/studio/metadata' | ||
import config from 'sanity.config' | ||
import { createGlobalStyle } from 'styled-components' | ||
|
||
const GlobalStyle = createGlobalStyle(({ theme }) => ({ | ||
html: { backgroundColor: theme.sanity.color.base.bg }, | ||
})) | ||
|
||
export default function StudioPage() { | ||
return ( | ||
<> | ||
<Head> | ||
<NextStudioHead favicons={false} /> | ||
{Object.entries(metadata).map(([key, value]) => ( | ||
<meta key={key} name={key} content={value} /> | ||
))} | ||
</Head> | ||
|
||
<NextStudio config={config}> | ||
<StudioProvider config={config}> | ||
<GlobalStyle /> | ||
<StudioLayout /> | ||
</StudioProvider> | ||
</NextStudio> | ||
<NextStudio config={config} unstable_globalStyles /> | ||
</> | ||
) | ||
} |
23299d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
template-nextjs-clean – ./
template-nextjs-clean-git-main.sanity.build
template-nextjs-clean.sanity.build