From d2fe49b9b44b23caa41e1b113c98814cbca14141 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Thu, 26 May 2022 12:03:55 -0500 Subject: [PATCH] Set default domain for PageHead class --- helpers/config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helpers/config.js b/helpers/config.js index 2749549..e5592ca 100644 --- a/helpers/config.js +++ b/helpers/config.js @@ -3,6 +3,8 @@ import fs from 'fs-extra' import nuxtConfig from '~/nuxt.config.js' +import { getSiteUrl } from '~/helpers/url.js' + export const nuxtHead = nuxtConfig.head export async function getNetlifyConfig () { @@ -100,7 +102,7 @@ export class PageHead { link = [], structuredData = null, - domain, + domain = getSiteUrl(), pathname, } = options