27 lines
535 B
TypeScript
27 lines
535 B
TypeScript
|
import type { StorybookConfig } from '@storybook/sveltekit';
|
||
|
|
||
|
const config: StorybookConfig = {
|
||
|
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||
|
addons: [
|
||
|
'@storybook/addon-links',
|
||
|
'@storybook/addon-essentials',
|
||
|
'@storybook/addon-interactions'
|
||
|
],
|
||
|
framework: {
|
||
|
name: '@storybook/sveltekit',
|
||
|
options: {}
|
||
|
},
|
||
|
docs: {
|
||
|
autodocs: 'tag'
|
||
|
},
|
||
|
viteFinal: (config) => {
|
||
|
config.server!.proxy = {
|
||
|
'/api': {
|
||
|
target: 'http://localhost:8099/'
|
||
|
}
|
||
|
};
|
||
|
return config;
|
||
|
}
|
||
|
};
|
||
|
export default config;
|