From 4cd79eb7ff662803f30c7755bf84cacc7603d4c8 Mon Sep 17 00:00:00 2001 From: "Mohammad K. Hussain" <99530996+MAX-786@users.noreply.github.com> Date: Sat, 10 Aug 2024 16:32:17 +0530 Subject: [PATCH] use isStorybook to conditionally add the remix plugin --- vite.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vite.config.js b/vite.config.js index d920bdae..ddb41d83 100644 --- a/vite.config.js +++ b/vite.config.js @@ -27,14 +27,15 @@ export default defineConfig({ remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter], providerImportSource: '@mdx-js/react', }), - remixCloudflareDevProxy(), - remix({ + jsconfigPaths(), + // Add the Remix plugin only if not in Storybook mode + !isStorybook && remixCloudflareDevProxy(), + !isStorybook && remix({ routes(defineRoutes) { return defineRoutes(route => { route('/', 'routes/home/route.js', { index: true }); }); }, }), - jsconfigPaths(), ], });