fix: MindSpace remote sync, thumbnail fallback, and Plaza URL guards
Ensure page sync runs via pageSyncService in remote mode, fall back to workspace HTML when storage assets are missing, and prevent production Portal from linking to loopback Plaza URLs baked in at build time. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -13,8 +13,10 @@ export function createMindSpaceLocalServerAdapter({
|
||||
registerPublicHtmlArtifactsForConversation,
|
||||
logger = console,
|
||||
setIntervalFn = setInterval,
|
||||
syncWorkspaceAssetsEnabled = true,
|
||||
} = {}) {
|
||||
const services = createMindSpaceLocalRuntimeServices({
|
||||
let services;
|
||||
services = createMindSpaceLocalRuntimeServices({
|
||||
pool,
|
||||
h5Root,
|
||||
env,
|
||||
@@ -36,6 +38,10 @@ export function createMindSpaceLocalServerAdapter({
|
||||
registerPublicHtmlArtifactsForConversation,
|
||||
}),
|
||||
logger,
|
||||
syncWorkspaceAssets: syncWorkspaceAssetsEnabled
|
||||
? (targetUserId, options) =>
|
||||
services?.assetService?.syncWorkspaceAssets?.(targetUserId, options)
|
||||
: null,
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user