only generate type data once

This commit is contained in:
outfoxxed 2024-10-24 19:40:53 -07:00
parent 8fb1408bb4
commit e0a2fb0256
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
6 changed files with 21 additions and 11 deletions

View file

@ -7,11 +7,11 @@ export interface Props {
const { currentRoute, currentModule, currentClass } = Astro.props;
import { generateTypeData } from "@config/io/generateTypeData";
import { getTypeData } from "@config/io/generateTypeData";
import { groupRoutes } from "@config/io/helpers";
import Tree from "./Tree.astro";
const routes = await generateTypeData();
const routes = await getTypeData();
const groupedRoutes = groupRoutes(routes);
const configuration = {