head meta add absolute image paths
[issue link]Hello,
When adding meta via head () I want to add an og:image using dynamic assets, and they need to have an absolute path, not a relative one:
{ hid: ‘og-image’, property: ‘og-image’, content: ‘need-absolute-path-here’ }
Is there a way to set a variable depending on whether the build is dev or production?
something like? :
if (process.env.NODE_ENV === ‘production’) {
this.prodBaseUrl = ‘https://mydomain.com/_nuxt/img/’
}
Any advice would be much appreciated!
Thanks!
Gyles