@studio-fes/layer-strapi 0.3.1 → 0.3.2
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 +6 -0
- package/app/composables/useStrapiSEO.ts +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
4
|
+
"version": "0.3.2",
|
|
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.
|
|
18
|
+
"@studio-fes/layer-base": "0.3.2"
|
|
19
19
|
},
|
|
20
20
|
"description": "Create Nuxt extendable layer with this GitHub template.",
|
|
21
21
|
"repository": {
|