nuxt-og-image 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -80,7 +80,9 @@ _nuxt.config.ts_
80
80
  export default defineNuxtConfig({
81
81
  // Recommended
82
82
  runtimeConfig: {
83
- siteUrl: process.env.NUXT_PUBLIC_SITE_URL || 'https://example.com',
83
+ public: {
84
+ siteUrl: process.env.NUXT_PUBLIC_SITE_URL || 'https://example.com',
85
+ }
84
86
  },
85
87
  // OR
86
88
  ogImage: {
package/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "bridge": false
6
6
  },
7
7
  "configKey": "ogImage",
8
- "version": "1.4.2"
8
+ "version": "1.4.3"
9
9
  }
package/dist/module.mjs CHANGED
@@ -199,7 +199,7 @@ const module = defineNuxtModule({
199
199
  return {
200
200
  // when we run `nuxi generate` we need to force prerendering
201
201
  forcePrerender: !nuxt.options.dev && nuxt.options._generate,
202
- host: nuxt.options.runtimeConfig.public?.siteUrl,
202
+ host: process.env.NUXT_PUBLIC_SITE_URL || nuxt.options.runtimeConfig.public?.siteUrl,
203
203
  defaults: {
204
204
  component: "OgImageBasic",
205
205
  width: 1200,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-og-image",
3
3
  "type": "module",
4
- "version": "1.4.2",
4
+ "version": "1.4.3",
5
5
  "packageManager": "pnpm@7.8.0",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",