diff --git a/app/components/home/live/Stats.vue b/app/components/home/live/Stats.vue index 13490a6..6674337 100644 --- a/app/components/home/live/Stats.vue +++ b/app/components/home/live/Stats.vue @@ -2,7 +2,9 @@ import type { Stats } from '~~/types' import { usePrecision } from '@vueuse/math' -const { data: stats } = await useAsyncData('stats', () => $fetch('/api/stats')) +const { data: stats } = await useAsyncData('stats', () => $fetch('/api/stats'), { + lazy: true +}) const startDate = computed(() => new Date(stats.value!.coding.range.start)) const yearsCollected = useTimeAgo(startDate).value diff --git a/worker-configuration.d.ts b/worker-configuration.d.ts index 77af577..26cc966 100644 --- a/worker-configuration.d.ts +++ b/worker-configuration.d.ts @@ -1,7 +1,10 @@ /* eslint-disable */ -// Generated by Wrangler by running `wrangler types` (hash: 373e9a05bf207b93549ab53665d07e4b) +// Generated by Wrangler by running `wrangler types` (hash: 8c48032b4b2801cdbac6e8dbc9d26203) // Runtime types generated with workerd@1.20251210.0 2025-12-13 nodejs_compat declare namespace Cloudflare { + interface GlobalProps { + mainModule: typeof import("./.output/server/index"); + } interface Env { CACHE: KVNamespace; STUDIO_GITHUB_CLIENT_ID: string;