feat: glossary cron

This commit is contained in:
tresabhi committed 2025-04-19 00:47:28 -05:00
1 parent 365c68aa4d
commit c5e6f5e2eb
16 files changed
+367 -57

No files matched your search

@@ -0,0 +1,3 @@
import { fetchGallery } from '@blitzkit/core';
export const awaitableGallery = fetchGallery();
@@ -1,10 +0,0 @@
import { assertSecret, type BlitzGlossary } from '@blitzkit/core';
export async function fetchGlossary(locale: string) {
const response = await fetch(
`${assertSecret(
import.meta.env.WOTB_GLOSSARY_DOMAIN,
)}/${locale}${assertSecret(import.meta.env.WOTB_GLOSSARY_PATH)}`,
);
return (await response.json()) as BlitzGlossary;
}