diff --git a/.env b/.env index 85588fc4661..b4d840a3125 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 00000000000..a13af9210c2 --- /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 ea5dc8e3dbd..4db97f60760 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);