From 8a632a1e66810d7e285e33399851df34bc576288 Mon Sep 17 00:00:00 2001 From: ChrisLaRocque Date: Wed, 14 Feb 2024 15:27:42 -0500 Subject: [PATCH 1/2] Reverts to nov config --- next/components/bynder-block/component.tsx | 17 +++++++++-------- sanity/components/inputs/parent-attributes.tsx | 2 +- sanity/sanity.cli.ts | 2 +- sanity/sanity.config.ts | 2 +- sanity/schemas/documents/story.ts | 2 +- sanity/schemas/documents/taxonomy-term.ts | 2 +- 6 files changed, 14 insertions(+), 13 deletions(-) diff --git a/next/components/bynder-block/component.tsx b/next/components/bynder-block/component.tsx index b07fc1a..8fba8f6 100644 --- a/next/components/bynder-block/component.tsx +++ b/next/components/bynder-block/component.tsx @@ -15,19 +15,20 @@ export default function RenderBynderBlock({ caption, bynderAsset, }: ISanityBynderBlockDocument) { - const { previewImg, aspectRatio } = bynderAsset; const imgWidth = 400; const fileURL = "/"; // this doesn't come back from Sanity's test space return (
- {"Image + {bynderAsset && bynderAsset.previewImg && ( + {"Image + )}

{title} diff --git a/sanity/components/inputs/parent-attributes.tsx b/sanity/components/inputs/parent-attributes.tsx index 0be236f..dd2cca0 100644 --- a/sanity/components/inputs/parent-attributes.tsx +++ b/sanity/components/inputs/parent-attributes.tsx @@ -6,7 +6,7 @@ import { createClient } from '@sanity/client' * Used to show additional info on taxonomyTerm documents */ const client = createClient({ - projectId: process.env.SANITY_PROJECT_ID, + projectId: 'fvuvea00', dataset: 'production', }) diff --git a/sanity/sanity.cli.ts b/sanity/sanity.cli.ts index f745973..a41aa78 100644 --- a/sanity/sanity.cli.ts +++ b/sanity/sanity.cli.ts @@ -2,7 +2,7 @@ import { defineCliConfig } from 'sanity/cli' // Config file used by the Sanity CLI https://www.sanity.io/docs/cli#4baf8325e0e3 export default defineCliConfig({ api: { - projectId: process.env.SANITY_PROJECT_ID || 'fvuvea00', + projectId: 'fvuvea00', dataset: 'production', }, }) diff --git a/sanity/sanity.config.ts b/sanity/sanity.config.ts index bcd501e..e995151 100644 --- a/sanity/sanity.config.ts +++ b/sanity/sanity.config.ts @@ -21,7 +21,7 @@ export default defineConfig({ name: 'default', title: 'Schwab POC', icon: SchwabLogo, - projectId: process.env.SANITY_PROJECT_ID || 'fvuvea00', + projectId: 'fvuvea00', dataset: 'production', plugins: [ deskTool({ diff --git a/sanity/schemas/documents/story.ts b/sanity/schemas/documents/story.ts index dd6e70e..3d481ff 100644 --- a/sanity/schemas/documents/story.ts +++ b/sanity/schemas/documents/story.ts @@ -21,7 +21,7 @@ export default { options: { source: 'title', }, - validation: (rule: Rule) => rule.required(), + // validation: (rule: Rule) => rule.required(), group: 'content', }, { diff --git a/sanity/schemas/documents/taxonomy-term.ts b/sanity/schemas/documents/taxonomy-term.ts index 1a46fc4..921c9f7 100644 --- a/sanity/schemas/documents/taxonomy-term.ts +++ b/sanity/schemas/documents/taxonomy-term.ts @@ -18,7 +18,7 @@ export default { type: 'slug', options: { source: 'name', - isUnique: isUniqueAcrossAllDocuments, + // isUnique: isUniqueAcrossAllDocuments, }, }, ], From c6a41e5d85789df4fe88d740c81875184fcf1acd Mon Sep 17 00:00:00 2001 From: ChrisLaRocque Date: Wed, 14 Feb 2024 15:30:16 -0500 Subject: [PATCH 2/2] Update sanity.cli.ts --- sanity/sanity.cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanity/sanity.cli.ts b/sanity/sanity.cli.ts index a41aa78..415d50d 100644 --- a/sanity/sanity.cli.ts +++ b/sanity/sanity.cli.ts @@ -2,7 +2,7 @@ import { defineCliConfig } from 'sanity/cli' // Config file used by the Sanity CLI https://www.sanity.io/docs/cli#4baf8325e0e3 export default defineCliConfig({ api: { - projectId: 'fvuvea00', + projectId: 'fvuvea00', dataset: 'production', }, })