diff --git a/.env b/.env index 85588fc..b4d840a 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ NEXT_PUBLIC_GA_MEASUREMENT_ID=G-JKZEHMJBMH +NEXT_PUBLIC_NODE_LIMIT=600 NEXT_TELEMETRY_DISABLED=1 \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..a13af92 --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +NEXT_PUBLIC_NODE_LIMIT=1000 diff --git a/src/features/editor/views/GraphView/index.tsx b/src/features/editor/views/GraphView/index.tsx index ea5dc8e..4db97f6 100644 --- a/src/features/editor/views/GraphView/index.tsx +++ b/src/features/editor/views/GraphView/index.tsx @@ -134,7 +134,7 @@ const GraphCanvas = ({ isWidget }: GraphProps) => { ); }; -const SUPPORTED_LIMIT = 600; +const SUPPORTED_LIMIT = +(process.env.NEXT_PUBLIC_NODE_LIMIT as string); export const GraphView = ({ isWidget = false }: GraphProps) => { const setViewPort = useGraph(state => state.setViewPort);