Bufixes, prefetching root page
All checks were successful
pipeline / build-and-push-images (push) Successful in 1m31s

This commit is contained in:
2026-01-20 22:18:55 +01:00
parent 4df99a4312
commit 353baa6267
4 changed files with 23 additions and 7 deletions

View File

@@ -5,6 +5,13 @@ const championAlias = route.params.alias as string
const { data : championData } : {data : Ref<ChampionData>} = await useFetch("/api/champion/" + championAlias.toLowerCase())
const championId = championData.value.id
// Prefetch home page for faster navigation
useHead({
link: [
{ rel: 'prefetch', href: '/' }
]
})
defineOgImageComponent('Champion', {
title: championData.value.name,
id: championId,
@@ -90,4 +97,4 @@ function updateState(newState : string, newLane : number) {
margin-top: 20px;
}
}
</style>
</style>