fix: inject Rybbit tracking on m.tkmind.cn publication pages
Memind CI / Test, build, and release guards (push) Successful in 1m36s
Memind CI / Test, build, and release guards (push) Successful in 1m36s
Publication routes and share shells were missing the Rybbit tracker, and bootstrap now reuses the stored MindSpace analytics secret when Rybbit env secret is absent. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+14
-2
@@ -348,8 +348,15 @@ async function bootstrapUserAuth() {
|
||||
mindSpaceRuntimeAdapter,
|
||||
resolveUserIdByDirKey,
|
||||
} = domainServices;
|
||||
mindSpaceAnalyticsConfig =
|
||||
domainServices.mindSpaceAnalyticsConfig;
|
||||
Object.assign(
|
||||
mindSpaceAnalyticsConfig,
|
||||
domainServices.mindSpaceAnalyticsConfig,
|
||||
);
|
||||
Object.assign(
|
||||
mindSpaceRybbitConfig,
|
||||
domainServices.mindSpaceRybbitConfig ??
|
||||
mindSpaceRybbitConfig,
|
||||
);
|
||||
scheduleService = domainServices.scheduleService;
|
||||
pageDataService = domainServices.pageDataService;
|
||||
pageDataPublicService =
|
||||
@@ -1490,6 +1497,11 @@ const sendPublishedPage =
|
||||
createPortalPublishedPageDelivery({
|
||||
registerLongImageArtifact:
|
||||
registerPublishedLongImageArtifactForConversation,
|
||||
analyticsConfig: mindSpaceAnalyticsConfig,
|
||||
rybbitConfig: mindSpaceRybbitConfig,
|
||||
getAuthPool: () => authPool,
|
||||
getUserAuth: () => userAuth,
|
||||
getMindSpacePages: () => mindSpacePages,
|
||||
});
|
||||
|
||||
attachPortalPublicationRoutes({
|
||||
|
||||
Reference in New Issue
Block a user