include configs on .env vars or pass through props

This commit is contained in:
William Lima
2024-05-22 11:48:20 -01:00
parent a6047a9341
commit d1a5138c6e
3 changed files with 39 additions and 13 deletions

View File

@@ -1,9 +1,14 @@
import 'tailwindcss/tailwind.css'
import '../src/index.css'
import type { Preview } from '@storybook/react';
window.process = {
...window.process,
env:{
...window.process?.env
}
};
const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },