From 044d3a293d1d79c581068b993196f3e56f4f8b02 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 30 Apr 2022 11:43:40 -0500 Subject: [PATCH] Get site url from helper --- nuxt.config.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index a30dbaa..cb98f22 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,6 +1,10 @@ import { promises as fs } from 'fs' -import pkg from './package' +import pkg from './package.json' +import { getSiteUrl } from '~/helpers/get-site-url.js' + + +const siteUrl = getSiteUrl() export default { @@ -62,7 +66,7 @@ export default { }, { 'property': 'og:image', - 'content': `${process.env.URL}/images/og-image.png` + 'content': `${ siteUrl }/images/og-image.png` }, { 'property': 'og:image:width', @@ -92,11 +96,11 @@ export default { }, { 'property': 'twitter:url', - 'content': `${process.env.URL}` + 'content': `${ siteUrl }` }, { 'property': 'twitter:image', - 'content': `${process.env.URL}/images/mark.png` + 'content': `${ siteUrl }/images/mark.png` } ], link: [