-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.ts
More file actions
30 lines (29 loc) · 778 Bytes
/
main.ts
File metadata and controls
30 lines (29 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import type { StorybookConfig } from '@storybook/react-vite';
const config: StorybookConfig = {
"stories": [
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
],
"addons": [
"@chromatic-com/storybook",
"@storybook/addon-vitest",
"@storybook/addon-a11y",
"@storybook/addon-docs",
"@storybook/addon-onboarding"
],
"framework": "@storybook/react-vite",
async viteFinal(config) {
config.plugins = config.plugins?.filter(
(p: any) => p && (Array.isArray(p) ? p[0] : p).name !== "vite-plugin-ssr"
);
config.define = {
...config.define,
"process.env": {
DAILP_USER_POOL: "us-east-1_stub",
DAILP_USER_POOL_CLIENT: "stub",
},
};
return config;
},
};
export default config;