From 378c766971fdee40ca26884fe6f6123058453f8d Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Fri, 25 Nov 2022 18:45:33 +0100 Subject: [PATCH] enable interactions debugger when creating sandboxes --- scripts/tasks/sandbox-parts.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/tasks/sandbox-parts.ts b/scripts/tasks/sandbox-parts.ts index 17c97f02dbba..a8989d579e93 100644 --- a/scripts/tasks/sandbox-parts.ts +++ b/scripts/tasks/sandbox-parts.ts @@ -70,6 +70,11 @@ export const create: Task['run'] = async ( const mainConfig = await readMainConfig({ cwd }); + // Enable or disable Storybook features + mainConfig.setFieldValue(['features'], { + interactionsDebugger: true, + }); + mainConfig.setFieldValue(['core', 'disableTelemetry'], true); if (template.expected.builder === '@storybook/builder-vite') setSandboxViteFinal(mainConfig); await writeConfig(mainConfig);