From 6084b2145e56cdc75ae858c2a1b5235da87bb3ce Mon Sep 17 00:00:00 2001 From: Julian Bilcke Date: Sat, 27 Jul 2024 23:30:32 +0200 Subject: [PATCH] tentative fix for sharp --- next.config.js | 2 +- .../WorkflowEditor/WorkflowViewer/ReactFlowCanvas/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index f5e49b52..0c5300a8 100644 --- a/next.config.js +++ b/next.config.js @@ -21,7 +21,7 @@ const nextConfig = { webpack: (config) => { config.resolve.alias = { ...config.resolve.alias, - "sharp$": false, + // "sharp$": false, "onnxruntime-node$": false, } return config; diff --git a/src/components/editors/WorkflowEditor/WorkflowViewer/ReactFlowCanvas/index.tsx b/src/components/editors/WorkflowEditor/WorkflowViewer/ReactFlowCanvas/index.tsx index 2ecc73ef..b973abd9 100644 --- a/src/components/editors/WorkflowEditor/WorkflowViewer/ReactFlowCanvas/index.tsx +++ b/src/components/editors/WorkflowEditor/WorkflowViewer/ReactFlowCanvas/index.tsx @@ -54,7 +54,7 @@ export function ReactFlowCanvas() { className="bg-transparent" // TODO: the "light" / "dark" string should be // defined in the theme, eg. colorMode={theme.mode} - colorMode="dark" + colorMode={theme.colorMode} style={{ backgroundColor: theme.workflow.bgColor || theme.defaultBgColor || '#000000',