From 3057e2b540c45eb76097dbca56ea5cceee9c4041 Mon Sep 17 00:00:00 2001 From: Snorre Eskeland Brekke Date: Tue, 26 Nov 2024 15:51:28 +0100 Subject: [PATCH 1/2] feat: Start in Create button is now enabled by default (#7884) --- dev/test-create-integration-studio/sanity.config.ts | 3 ++- packages/sanity/src/core/config/prepareConfig.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/test-create-integration-studio/sanity.config.ts b/dev/test-create-integration-studio/sanity.config.ts index 146861de727..c63985d74eb 100644 --- a/dev/test-create-integration-studio/sanity.config.ts +++ b/dev/test-create-integration-studio/sanity.config.ts @@ -15,7 +15,8 @@ export default defineConfig({ beta: { create: { - startInCreateEnabled: true, + // defaults to true + //startInCreateEnabled: true, fallbackStudioOrigin: 'create-integration-test.sanity.studio', }, }, diff --git a/packages/sanity/src/core/config/prepareConfig.ts b/packages/sanity/src/core/config/prepareConfig.ts index 7b771f7596c..a24529afbca 100644 --- a/packages/sanity/src/core/config/prepareConfig.ts +++ b/packages/sanity/src/core/config/prepareConfig.ts @@ -660,7 +660,7 @@ function resolveSource({ enabled: false, }, create: { - startInCreateEnabled: startInCreateEnabledReducer({config, initialValue: false}), + startInCreateEnabled: startInCreateEnabledReducer({config, initialValue: true}), fallbackStudioOrigin: createFallbackOriginReducer(config), }, }, From 25eb4f26d8f8359fb94ef1781d61fa0cb07e9c12 Mon Sep 17 00:00:00 2001 From: Snorre Eskeland Brekke Date: Tue, 26 Nov 2024 16:20:57 +0100 Subject: [PATCH 2/2] Revert "feat: Start in Create button is now enabled by default (#7884)" This reverts commit 3057e2b540c45eb76097dbca56ea5cceee9c4041. --- dev/test-create-integration-studio/sanity.config.ts | 3 +-- packages/sanity/src/core/config/prepareConfig.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dev/test-create-integration-studio/sanity.config.ts b/dev/test-create-integration-studio/sanity.config.ts index c63985d74eb..146861de727 100644 --- a/dev/test-create-integration-studio/sanity.config.ts +++ b/dev/test-create-integration-studio/sanity.config.ts @@ -15,8 +15,7 @@ export default defineConfig({ beta: { create: { - // defaults to true - //startInCreateEnabled: true, + startInCreateEnabled: true, fallbackStudioOrigin: 'create-integration-test.sanity.studio', }, }, diff --git a/packages/sanity/src/core/config/prepareConfig.ts b/packages/sanity/src/core/config/prepareConfig.ts index a24529afbca..7b771f7596c 100644 --- a/packages/sanity/src/core/config/prepareConfig.ts +++ b/packages/sanity/src/core/config/prepareConfig.ts @@ -660,7 +660,7 @@ function resolveSource({ enabled: false, }, create: { - startInCreateEnabled: startInCreateEnabledReducer({config, initialValue: true}), + startInCreateEnabled: startInCreateEnabledReducer({config, initialValue: false}), fallbackStudioOrigin: createFallbackOriginReducer(config), }, },