This commit is contained in:
AykutSarac 2024-12-18 10:34:12 +03:00
parent f3262e7666
commit 629c4c43e8
No known key found for this signature in database
3 changed files with 3 additions and 1 deletions

1
.env
View File

@ -1,2 +1,3 @@
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-JKZEHMJBMH
NEXT_PUBLIC_NODE_LIMIT=600
NEXT_TELEMETRY_DISABLED=1

1
.env.development Normal file
View File

@ -0,0 +1 @@
NEXT_PUBLIC_NODE_LIMIT=1000

View File

@ -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);