Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: storybook build

Myles Scolnickc980d3d47586
diff --git a/frontend/.gitignore b/frontend/.gitignore
index 30da341fce..87ae13c4c4 100644
--- a/frontend/.gitignore
+++ b/frontend/.gitignore
@@ -19,3 +19,6 @@
/playwright-report/
/playwright/.cache/
e2e-tests/screenshots
+
+# storybook
+/storybook-static
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index cb1f41100b..b8f5d0c235 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -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({
@@ -67,7 +68,7 @@ export default defineConfig({
htmlDevPlugin(),
react({
tsDecorators: true,
- plugins: [["@swc-jotai/react-refresh", {}]],
+ plugins: isDev ? [["@swc-jotai/react-refresh", {}]] : undefined,
}),
tsconfigPaths(),
],