- Web: Setup Storybook, added addons, configured Tailwind, added stories for UI components. - Backend: Updated API router, database, workers, and auth in common. - Stream Server: Removed SQLx queries and updated auth. - Docs & Scripts: Updated documentation and recovery scripts.
19 lines
No EOL
484 B
TypeScript
19 lines
No EOL
484 B
TypeScript
import type { StorybookConfig } from '@storybook/react-vite';
|
|
|
|
import { dirname, join } from "path"
|
|
|
|
function getAbsolutePath(value: string) {
|
|
return dirname(require.resolve(join(value, "package.json")))
|
|
}
|
|
|
|
const config: StorybookConfig = {
|
|
"stories": [
|
|
"../src/**/*.mdx",
|
|
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
|
|
],
|
|
"addons": [
|
|
getAbsolutePath('@storybook/addon-essentials')
|
|
],
|
|
"framework": getAbsolutePath('@storybook/react-vite')
|
|
};
|
|
export default config; |