Bufixes, prefetching root page
All checks were successful
pipeline / build-and-push-images (push) Successful in 1m31s
All checks were successful
pipeline / build-and-push-images (push) Successful in 1m31s
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user