Skip to content

Commit

Permalink
add config for referencing baseUrl of application for use in embed image
Browse files Browse the repository at this point in the history
  • Loading branch information
fisher60 committed Apr 21, 2024
1 parent 451f349 commit 6bd4f75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
</template>

<script setup>
import verticalLogoColor from "/img/logoVerticalColor.svg"
useHead({
bodyAttrs: {
class: "bg-base-100 text-primary-content"
Expand All @@ -22,7 +23,7 @@
ogTitle: "AbandonTech",
description: "Empowering Businesses Through Technology",
ogDescription: "Empowering Businesses Through Technology",
ogImage: "/img/logoVerticalColor.svg",
ogImage: useRuntimeConfig().public.baseUrl + verticalLogoColor,
twitterCard: "summary_large_image",
themeColor: "#1A67D7"
})
Expand Down
7 changes: 6 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
runtimeConfig: {
public: {
baseUrl: process.env.baseUrl
}
},
devtools: {
enabled: true,

Expand All @@ -16,5 +21,5 @@ export default defineNuxtConfig({
head: {
title: "AbandonTech",
}
}
},
})

0 comments on commit 6bd4f75

Please sign in to comment.