Skip to content

Commit

Permalink
chore(prettier): 🤖 ✨ (#677)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ecospark[bot] and github-actions[bot] authored Nov 17, 2023
1 parent b626a40 commit 28b59e0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions apps/studio/sanity.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,26 @@ const iframes: [string, string][] = [
'next-app-router-live-store',
'next-pages-router-live-store',
'remix-live-store',
].map((title) => [
`https://preview-kit-${title}.sanity.build`,
title,
])
].map((title) => [`https://preview-kit-${title}.sanity.build`, title])

const config = defineConfig({
projectId: process.env.SANITY_STUDIO_PROJECT_ID!,
dataset: process.env.SANITY_STUDIO_DATASET!,
plugins: [
deskTool({
defaultDocumentNode: (S, { schemaType }) => {
defaultDocumentNode: (S, { schemaType }) => {
switch (schemaType) {
case `page`:
return S.document().views([
S.view.form(),
...iframes.map(([ url, title]) =>
...iframes.map(([url, title]) =>
S.view
.component(Iframe)
.options({ ...iframeOptions, key: title, url } satisfies IframeOptions)
.options({
...iframeOptions,
key: title,
url,
} satisfies IframeOptions)
.title(title),
),
])
Expand Down

1 comment on commit 28b59e0

@vercel
Copy link

@vercel vercel bot commented on 28b59e0 Nov 17, 2023

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:

preview-kit-test-studio – ./apps/studio

preview-kit-test-studio-git-main.sanity.build
preview-kit-test-studio.sanity.build

Please sign in to comment.