base url
This commit is contained in:
parent
5611c54c97
commit
97fec06ea1
4
app.vue
4
app.vue
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
const config = useRuntimeConfig()
|
||||
const apiBase = config.public.apiBase
|
||||
|
||||
console.log(config)
|
||||
import { marked } from 'marked';
|
||||
|
||||
import k_logo from '@/assets/icons/logo.svg'
|
||||
|
@ -14,7 +14,7 @@ useSeoMeta({
|
|||
ogTitle: seoData.value?.title,
|
||||
description: seoData.value?.content,
|
||||
ogDescription: seoData.value?.content,
|
||||
ogImage: og_img,
|
||||
ogImage: config.public.baseUrl + og_img,
|
||||
// twitterCard: 'summary_large_image',
|
||||
})
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ export default defineNuxtConfig({
|
|||
runtimeConfig: {
|
||||
public: {
|
||||
apiBase: '/api',
|
||||
baseUrl: '',
|
||||
},
|
||||
},
|
||||
vite: {
|
||||
|
|
Loading…
Reference in New Issue