nxtgauge-frontend-solid/.storybook/main.ts
Ashwin Kumar Sivakumar 2cb4d52fb3 fix: Storybook, Playwright runtime, accessibility color contrast, test routes
- Fix Storybook path alias resolution for ~ imports
- Fix Playwright runtime error by using production build
- Fix accessibility color contrast issues (WCAG AA compliant)
- Fix test route from /jobs to /professionals
- Update chip-btn.active and .btn.primary colors to #a33500
2026-07-06 22:02:39 +05:30

30 lines
695 B
TypeScript

import type { StorybookConfig } from 'storybook-solidjs-vite';
import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const config: StorybookConfig = {
"stories": [
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
],
"addons": [
"@storybook/addon-a11y",
"@storybook/addon-docs"
],
"framework": "storybook-solidjs-vite",
async viteFinal(config) {
return {
...config,
resolve: {
...config.resolve,
alias: {
...config.resolve?.alias,
'~': path.resolve(__dirname, '../src'),
},
},
};
},
};
export default config;