nuxt-modules/og-image

og image path ignores nuxt site config via `runtimeConfig`

Closed this issue · 3 comments

https://stackblitz.com/edit/nuxt-ogimage-issues-139?file=nuxt.config.ts

When setting the site config url via runtimeConfig, the URL is not reflected correctly.

image

Thanks, I'm guessing this is a regression with nuxt-site-config.

While I investigate, I'd use the recommended way to configure it:

export default defineNuxtConfig({
  site: {
    url: '<site>'
  }
})

@harlan-zw I guessed so too but didn't have time digging deeper. Used static for now on https://github.com/manniL/lichter.io 👍

Have pushed up a fix in 2.2.5 of nuxt-site-config, you may need to clear lock file + node_modules and re-install.