From 524623e3e7eaedb0bf4c8a0054ebe07ff4e9d8d7 Mon Sep 17 00:00:00 2001 From: tkostuch Date: Fri, 27 Mar 2020 12:37:50 +0100 Subject: [PATCH 1/3] add ssrAppId to avoid second meta render on csr --- core/app.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/app.ts b/core/app.ts index c0d3649d86..50c847c810 100755 --- a/core/app.ts +++ b/core/app.ts @@ -60,8 +60,10 @@ const createApp = async (ssrContext, config, storeCode = null): Promise<{app: Vu // @deprecated from 2.0 once('__VUE_EXTEND__', () => { Vue.use(Vuelidate) - Vue.use(VueLazyload, { attempt: 2, preLoad: 1.5 }) - Vue.use(Meta) + Vue.use(VueLazyload, {attempt: 2, preLoad: 1.5}) + Vue.use(Meta, { + ssrAppId: 1 + }) Vue.use(VueObserveVisibility) Object.keys(corePlugins).forEach(key => { From 0995a5a755425f6ad763ab1c335cdbddc34e55c7 Mon Sep 17 00:00:00 2001 From: tkostuch Date: Fri, 27 Mar 2020 12:59:13 +0100 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20677a5c83..fe9bafd55c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Update eslint and fix code style. - @gibkigonzo (#4179 #4181) - add missing cache tags for category and product - @gibkigonzo (#4173) +- add ssrAppId to avoid second meta render on csr - @gibkigonzo (#4203) ## [1.11.2] - 2020.03.10 From 4450561268b2468cf7b7115a901862c3e0259246 Mon Sep 17 00:00:00 2001 From: tkostuch Date: Fri, 27 Mar 2020 13:00:19 +0100 Subject: [PATCH 3/3] update styling --- core/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/app.ts b/core/app.ts index 50c847c810..8dfb969e19 100755 --- a/core/app.ts +++ b/core/app.ts @@ -60,7 +60,7 @@ const createApp = async (ssrContext, config, storeCode = null): Promise<{app: Vu // @deprecated from 2.0 once('__VUE_EXTEND__', () => { Vue.use(Vuelidate) - Vue.use(VueLazyload, {attempt: 2, preLoad: 1.5}) + Vue.use(VueLazyload, { attempt: 2, preLoad: 1.5 }) Vue.use(Meta, { ssrAppId: 1 })