Skip to content

Commit

Permalink
fix storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
beyang committed Oct 18, 2024
1 parent 7c745ae commit 313f0a9
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 313f0a9

Please sign in to comment.