@studio-fes/layer-strapi 0.3.1 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @studio-fes/layer-strapi
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - fix useCraftSEO to read site url from useSiteConfig
8
+
9
+ ## 0.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - fix useStrapiSEO and useCraftSEO fallback image to have the baseUrl
14
+
3
15
  ## 0.3.1
4
16
 
5
17
  ### Patch Changes
@@ -3,7 +3,8 @@ import type { SeoMetaFragment } from '~/types/graphql-operations'
3
3
  function getFallbackImage(): string | null {
4
4
  const runtimeConfig = useRuntimeConfig()
5
5
  const nuxtImage = useImage()
6
- return nuxtImage(`/${runtimeConfig.public.ogImageFallback}`, { width: 1200, height: 630, quality: 80 })
6
+ const baseUrl = (runtimeConfig.public.baseUrl as string).replace(/\/$/, '')
7
+ return nuxtImage(`${baseUrl}/${runtimeConfig.public.ogImageFallback}`, { width: 1200, height: 630, quality: 80 })
7
8
  }
8
9
 
9
10
  export function useStrapiSEO(seoData?: MaybeRefOrGetter<SeoMetaFragment>) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@studio-fes/layer-strapi",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "0.3.3",
5
5
  "main": "./nuxt.config.ts",
6
6
  "dependencies": {
7
7
  "@nuxt/eslint": "latest",
@@ -15,7 +15,7 @@
15
15
  "nuxt": "^4.4.8",
16
16
  "typescript": "^6.0.3",
17
17
  "vue": "latest",
18
- "@studio-fes/layer-base": "0.3.1"
18
+ "@studio-fes/layer-base": "0.3.3"
19
19
  },
20
20
  "description": "Create Nuxt extendable layer with this GitHub template.",
21
21
  "repository": {