File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ const config: StorybookConfig = {
1111 addons : [ 'msw-storybook-addon' ] ,
1212 framework : { name : '@storybook/react-vite' , options : { } } ,
1313 staticDirs : [ '../public' ] ,
14- viteFinal : ( viteConfig ) =>
14+ viteFinal : ( viteConfig , { configType } ) =>
1515 mergeConfig ( viteConfig , {
16+ base : configType === 'PRODUCTION' ? '/no-title-yeonu-kim/' : '/' ,
1617 plugins : [ tailwindcss ( ) ] ,
1718 resolve : { alias : { '@' : path . resolve ( dir , '../src' ) } } ,
1819 } ) ,
Original file line number Diff line number Diff line change 1+ /// <reference types="vite/client" />
12import type { Preview } from '@storybook/react-vite' ;
23import { QueryClient , QueryClientProvider } from '@tanstack/react-query' ;
34import { initialize , mswLoader } from 'msw-storybook-addon' ;
@@ -14,7 +15,10 @@ import { implTokenRepository } from '../src/infrastructure/token/token-repositor
1415import { handlers } from '../src/mocks/handlers' ;
1516import '../src/index.css' ;
1617
17- initialize ( { onUnhandledRequest : 'bypass' } ) ;
18+ initialize ( {
19+ onUnhandledRequest : 'bypass' ,
20+ serviceWorker : { url : `${ import . meta. env . BASE_URL } mockServiceWorker.js` } ,
21+ } ) ;
1822
1923/**
2024 * QueryClientProvider ์์์ ๋ ๋๋๋ ๋ด๋ถ ์ปดํฌ๋ํธ.
You canโt perform that action at this time.
0 commit comments