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
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1195">#c1195</a>)</em></sub></div>