Skip to content

Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base

fix og meta

Hugo Richard0681a5015c38
diff --git a/apps/app/app/app.vue b/apps/app/app/app.vue
index 80396ec..b8ff3b7 100644
--- a/apps/app/app/app.vue
+++ b/apps/app/app/app.vue
@@ -24,13 +24,17 @@ useHead({
titleTemplate: `%s - ${appConfig.app.name}`
})
+const config = useRuntimeConfig()
+const siteUrl = config.public.siteUrl as string
+const ogImage = siteUrl ? `${siteUrl.replace(/\/$/, '')}/og.jpg` : '/og.jpg'
+
useSeoMeta({
title: appConfig.app.name,
description: appConfig.app.description,
ogTitle: appConfig.app.name,
ogDescription: appConfig.app.description,
- ogImage: '/og.jpg',
- twitterImage: '/og.jpg',
+ ogImage,
+ twitterImage: ogImage,
twitterCard: 'summary_large_image',
})
</script>
diff --git a/apps/app/nuxt.config.ts b/apps/app/nuxt.config.ts
index 24456e5..3743596 100644
--- a/apps/app/nuxt.config.ts
+++ b/apps/app/nuxt.config.ts
@@ -114,7 +114,8 @@ export default defineNuxtConfig({
ssr: false,
routeRules: {
- // Login page: SSR for fast first paint
+ // Root and login: SSR for OG meta tags and fast first paint
+ '/': { ssr: true },
'/login': { ssr: true },
// Shared chats: SSR + ISR for public access and SEO
'/shared/**': { ssr: true, isr: { expiration: 300 } },