diff --git a/code/ui/.storybook/main.ts b/code/ui/.storybook/main.ts index 6709b1bf460b..dbbb1f867a58 100644 --- a/code/ui/.storybook/main.ts +++ b/code/ui/.storybook/main.ts @@ -72,7 +72,9 @@ const config: StorybookConfig = { }, }, plugins: [ - configType === 'PRODUCTION' ? pluginTurbosnap({ rootDir: viteConfig.root || '' }) : [], + configType === 'PRODUCTION' + ? pluginTurbosnap({ rootDir: path.resolve(__dirname, '../..') }) + : [], ], optimizeDeps: { force: true }, build: {