nuxt-og-image 2.0.0-beta.2 → 2.0.0-beta.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/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "bridge": false
6
6
  },
7
7
  "configKey": "ogImage",
8
- "version": "2.0.0-beta.2"
8
+ "version": "2.0.0-beta.3"
9
9
  }
@@ -31,7 +31,7 @@ export function defineOgImageStatic(options = {}) {
31
31
  }
32
32
  export function defineOgImage(options = {}) {
33
33
  if (process.server) {
34
- const { forcePrerender, defaults, host } = useRuntimeConfig()["nuxt-og-image"];
34
+ const { forcePrerender, defaults, siteUrl } = useRuntimeConfig()["nuxt-og-image"];
35
35
  const router = useRouter();
36
36
  const route = router?.currentRoute?.value?.path || "";
37
37
  const e = useRequestEvent();
@@ -44,11 +44,11 @@ export function defineOgImage(options = {}) {
44
44
  },
45
45
  {
46
46
  name: "twitter:image:src",
47
- content: () => withBase(`${route === "/" ? "" : route}/__og_image__/og.png`, host)
47
+ content: () => withBase(`${route === "/" ? "" : route}/__og_image__/og.png`, siteUrl)
48
48
  },
49
49
  {
50
50
  property: "og:image",
51
- content: () => withBase(`${route === "/" ? "" : route}/__og_image__/og.png`, host)
51
+ content: () => withBase(`${route === "/" ? "" : route}/__og_image__/og.png`, siteUrl)
52
52
  },
53
53
  {
54
54
  property: "og:image:width",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-og-image",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.2",
4
+ "version": "2.0.0-beta.3",
5
5
  "packageManager": "pnpm@7.8.0",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",