bundle models.dev at build time and ignore refresh errors

This commit is contained in:
Dax Raad
2025-06-23 14:50:19 -04:00
parent b7ee16aabd
commit bc34f08333
2 changed files with 10 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
export async function data() {
const json = await fetch("https://models.dev/api.json").then((x) => x.text())
return json
}