From 4a8f20bb9bd671f1b42440bcea3f20ccec7645ce Mon Sep 17 00:00:00 2001 From: tianyingchun Date: Mon, 5 Aug 2024 07:18:13 +0800 Subject: [PATCH] fix: small fix & update docs site --- src/core/track-builder.ts | 2 +- website/docusaurus.config.ts | 2 +- website/sidebars.ts | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/core/track-builder.ts b/src/core/track-builder.ts index e9a5182..5136343 100644 --- a/src/core/track-builder.ts +++ b/src/core/track-builder.ts @@ -23,7 +23,7 @@ export class TrackBuilder< EventData extends TrackEventDataBase, > { private ctx: Context; - private adapterMap: TrackAdapterMap; + private adapterMap: TrackAdapterMap = {}; private beforeHook?: TrackBeforeFunction; private afterHook?: TrackAfterFunction; diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 4270e41..4d97e38 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -7,7 +7,7 @@ const config: Config = { title: 'hyperse track', tagline: 'A typed, smart, scalable , powerful data collection engine written in typescript', - url: 'https://hyperse.github.io', + url: 'https://hyperse-io.github.io', baseUrl: '/track', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', diff --git a/website/sidebars.ts b/website/sidebars.ts index 9159969..465fb41 100644 --- a/website/sidebars.ts +++ b/website/sidebars.ts @@ -21,7 +21,12 @@ const sidebars: SidebarsConfig = { { type: 'link', label: 'Hyperse Pipeline', - href: 'https://hyperse.github.io/pipeline/', + href: 'https://hyperse-io.github.io/pipeline/', + }, + { + type: 'link', + label: 'Hyperse gh-pages starter', + href: 'https://hyperse-io.github.io/gh-pages-starter/', }, ], },