From 6c60a56d01eb6d29a31d57cb8693dbe302d16429 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sun, 8 Sep 2024 12:17:01 +0900 Subject: [PATCH] Update preview.ts (cherry picked from commit 5c0ce01dbdf2194ffe94aba950f747a9968f29c4) --- packages/frontend/.storybook/preview.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/frontend/.storybook/preview.ts b/packages/frontend/.storybook/preview.ts index db095f7025..feaaa5110e 100644 --- a/packages/frontend/.storybook/preview.ts +++ b/packages/frontend/.storybook/preview.ts @@ -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(); @@ -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);