Skip to content

Commit

Permalink
Merge pull request #30217 from storybookjs/yann/fix-internal-storybook
Browse files Browse the repository at this point in the history
Build: Fix infinite reloading of internal storybook
  • Loading branch information
yannbf authored Jan 9, 2025
2 parents 1a6816f + 08ce74c commit e890a40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ const config: StorybookConfig = {
// disable sourcemaps in CI to not run out of memory
sourcemap: process.env.CI !== 'true',
},
server: {
watch: {
// Something odd happens with tsconfig and nx which causes Storybook to keep reloading, so we ignore them
ignored: ['**/.nx/cache/**', '**/tsconfig.json'],
},
},
} satisfies typeof viteConfig);
},
// logLevel: 'debug',
Expand Down

0 comments on commit e890a40

Please sign in to comment.