Skip to content

Commit

Permalink
fix: storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick committed Oct 3, 2023
1 parent ae42792 commit c980d3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
/playwright-report/
/playwright/.cache/
e2e-tests/screenshots

# storybook
/storybook-static
3 changes: 2 additions & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const htmlDevPlugin = (): Plugin => {
};

const SERVER_PORT = process.env.SERVER_PORT || 2718;
const isDev = process.env.NODE_ENV === "development";

// https://vitejs.dev/config/
export default defineConfig({
Expand Down Expand Up @@ -67,7 +68,7 @@ export default defineConfig({
htmlDevPlugin(),
react({
tsDecorators: true,
plugins: [["@swc-jotai/react-refresh", {}]],
plugins: isDev ? [["@swc-jotai/react-refresh", {}]] : undefined,
}),
tsconfigPaths(),
],
Expand Down

1 comment on commit c980d3d

@vercel
Copy link

@vercel vercel bot commented on c980d3d Oct 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

marimo-storybook – ./frontend

marimo-storybook.vercel.app
marimo-storybook-marimo.vercel.app
marimo-storybook-git-main-marimo.vercel.app

Please sign in to comment.