Skip to content

Commit

Permalink
Update preview.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Sep 8, 2024
1 parent f486352 commit 5c0ce01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/frontend/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { commonHandlers, onUnhandledRequest } from './mocks.js';
import themes from './themes.js';
import '../src/style.scss';
import { DI } from '../src/di.js';
import { url } from '../src/config.js';
import { MediaProxy } from '../../frontend-shared/js/media-proxy.js';

const appInitialized = Symbol();

Expand Down Expand Up @@ -79,6 +81,7 @@ queueMicrotask(() => {
}
app[appInitialized] = true;
app.provide(DI.serverMetadata, {}); // TODO
app.provide(DI.mediaProxy, new MediaProxy({}, url));
loadTheme(applyTheme);
components(app);
directives(app);
Expand Down

0 comments on commit 5c0ce01

Please sign in to comment.