only generate type data once
This commit is contained in:
parent
8fb1408bb4
commit
e0a2fb0256
6 changed files with 21 additions and 11 deletions
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
import DocsLayout from "@layouts/DocsLayout.astro";
|
||||
import { generateTypeData } from "@config/io/generateTypeData";
|
||||
import { getTypeData } from "@config/io/generateTypeData";
|
||||
|
||||
const routes = await generateTypeData();
|
||||
const routes = await getTypeData();
|
||||
|
||||
const modules = [...new Set(routes.map(route => route.type))];
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue