Add s3 endpoint as preload

This commit is contained in:
2025-08-02 01:18:37 +02:00
parent 7d974a857c
commit facb07de5b
5 changed files with 19 additions and 8 deletions
+4
View File
@@ -12,6 +12,8 @@ const title = computed(() =>
title: t((route.meta.title as string) || 'layouts.default_tile')
})
);
const { s3Bucket, s3Host } = useRuntimeConfig().public;
</script>
<template>
<Html
@@ -28,6 +30,8 @@ const title = computed(() =>
:hreflang="link.hreflang"
/>
</template>
<Link rel="dns-prefetch" :href="`https://${s3Bucket}.${s3Host}/`" />
<Link rel="preconnect" :href="`https://${s3Bucket}.${s3Host}/`" />
<template v-for="meta in head.meta" :key="meta.id">
<Meta :id="meta.id" :property="meta.property" :content="meta.content" />
</template>