jbilcke-hf HF staff commited on
Commit
6084b21
1 Parent(s): 4dd5029

tentative fix for sharp

Browse files
next.config.js CHANGED
@@ -21,7 +21,7 @@ const nextConfig = {
21
  webpack: (config) => {
22
  config.resolve.alias = {
23
  ...config.resolve.alias,
24
- "sharp$": false,
25
  "onnxruntime-node$": false,
26
  }
27
  return config;
 
21
  webpack: (config) => {
22
  config.resolve.alias = {
23
  ...config.resolve.alias,
24
+ // "sharp$": false,
25
  "onnxruntime-node$": false,
26
  }
27
  return config;
src/components/editors/WorkflowEditor/WorkflowViewer/ReactFlowCanvas/index.tsx CHANGED
@@ -54,7 +54,7 @@ export function ReactFlowCanvas() {
54
  className="bg-transparent"
55
  // TODO: the "light" / "dark" string should be
56
  // defined in the theme, eg. colorMode={theme.mode}
57
- colorMode="dark"
58
  style={{
59
  backgroundColor:
60
  theme.workflow.bgColor || theme.defaultBgColor || '#000000',
 
54
  className="bg-transparent"
55
  // TODO: the "light" / "dark" string should be
56
  // defined in the theme, eg. colorMode={theme.mode}
57
+ colorMode={theme.colorMode}
58
  style={{
59
  backgroundColor:
60
  theme.workflow.bgColor || theme.defaultBgColor || '#000000',