From 429e77106e999bea2cd18073af1378f3a9a36c3b Mon Sep 17 00:00:00 2001 From: Valery Melou Date: Tue, 10 Sep 2024 23:53:40 +0100 Subject: [PATCH 1/2] fix: meta data service, app config and process.env def --- apps/website/src/app/app.config.ts | 1 - apps/website/src/types.d.ts | 1 + libs/shared/seo/src/lib/metadata.service.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/website/src/app/app.config.ts b/apps/website/src/app/app.config.ts index 9064e29..7ed565e 100644 --- a/apps/website/src/app/app.config.ts +++ b/apps/website/src/app/app.config.ts @@ -18,7 +18,6 @@ export const appConfig: ApplicationConfig = { provideClientHydration(), provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(appRoutes), - provideRouter(appRoutes), { provide: WINDOW_TOKEN, useFactory: () => { diff --git a/apps/website/src/types.d.ts b/apps/website/src/types.d.ts index d21ae3b..f8862a2 100644 --- a/apps/website/src/types.d.ts +++ b/apps/website/src/types.d.ts @@ -3,5 +3,6 @@ declare const process: { VM_CONTENTFUL_SPACE: string; VM_CONTENTFUL_ENVIRONMENT: string; VM_CONTENTFUL_ACCESS_TOKEN: string; + PORT: number; }; }; diff --git a/libs/shared/seo/src/lib/metadata.service.ts b/libs/shared/seo/src/lib/metadata.service.ts index c2ce594..4bf5055 100644 --- a/libs/shared/seo/src/lib/metadata.service.ts +++ b/libs/shared/seo/src/lib/metadata.service.ts @@ -64,7 +64,7 @@ export class MetadataService { { name: 'twitter:card', content: 'summary' }, { name: 'twitter:site', content: '@valerymelou' }, { name: 'twitter:title', content: metadata.title }, - { name: 'twitter:description', content: imageUrl }, + { name: 'twitter:description', content: metadata.description }, { name: 'twitter:image', content: imageUrl }, { name: 'twitter:image:alt', content: metadata.imageAlt }, ]; From 40ee1b82d416a62b1c387fe127aa38962167cf2d Mon Sep 17 00:00:00 2001 From: Valery Melou Date: Wed, 11 Sep 2024 00:00:56 +0100 Subject: [PATCH 2/2] chore: fix env definition --- apps/website/src/types.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/website/src/types.d.ts b/apps/website/src/types.d.ts index f8862a2..340eeda 100644 --- a/apps/website/src/types.d.ts +++ b/apps/website/src/types.d.ts @@ -5,4 +5,5 @@ declare const process: { VM_CONTENTFUL_ACCESS_TOKEN: string; PORT: number; }; + cwd: () => string; };