only generate type data once
This commit is contained in:
parent
8fb1408bb4
commit
e0a2fb0256
6 changed files with 21 additions and 11 deletions
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
import DocsLayout from "@layouts/DocsLayout.astro";
|
||||
import { generateTypeData } from "@config/io/generateTypeData";
|
||||
import { getTypeData } from "@config/io/generateTypeData";
|
||||
import { processMarkdown } from "@src/config/io/markdown";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const routes = await generateTypeData();
|
||||
const routes = await getTypeData();
|
||||
|
||||
return routes
|
||||
.filter(route => route.name === "index")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue