Skip to content

Commit

Permalink
fix storybook build (#5949)
Browse files Browse the repository at this point in the history
  • Loading branch information
beyang authored Oct 21, 2024
1 parent 846f773 commit 7192bdd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vscode/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { resolve } from 'node:path'
import type { StorybookConfig } from '@storybook/react-vite'
import { defineProjectWithDefaults } from '../../.config/viteShared'

Expand Down Expand Up @@ -33,6 +34,14 @@ const config: StorybookConfig = {
css: {
postcss: __dirname + '/../webviews',
},
resolve: {
alias: [
{
find: 'env-paths',
replacement: resolve(__dirname, '../../web/lib/agent/shims/env-paths.ts'),
},
],
},
}),
staticDirs: ['./static'],
}
Expand Down

0 comments on commit 7192bdd

Please sign in to comment.