diff --git a/code/ui/.storybook/main.ts b/code/ui/.storybook/main.ts index 26d61a6251b0..cc95657abc94 100644 --- a/code/ui/.storybook/main.ts +++ b/code/ui/.storybook/main.ts @@ -67,6 +67,11 @@ const config: StorybookConfig = { configType === 'PRODUCTION' ? pluginTurbosnap({ rootDir: viteConfig.root || '' }) : [], ], optimizeDeps: { ...viteConfig.optimizeDeps, force: true }, + build: { + ...viteConfig.build, + // disable sourcemaps in CI to not run out of memory + sourcemap: process.env.CI !== 'true', + }, }), };