Skip to content

Conversation

@Gaubee
Copy link
Contributor

@Gaubee Gaubee commented Jan 20, 2026

Summary

修复 CD 构建时 ecosystem.json 没有包含 rwa-hub 等远程 miniapps 的问题。

问题根因

generateEcosystemDataForBuild 函数在 Build 模式下生成 ecosystem.json 时,只扫描了本地 miniapps(有 vite.config.ts 的目录),完全忽略了由 vite-plugin-remote-miniapps 下载的远程 miniapps。

对比:

  • Dev 模式:正确调用 getRemoteMiniappsForEcosystem() 合并远程 miniapps ✅
  • Build 模式:只有 scanMiniapps(),遗漏远程 miniapps ❌

修复

添加 scanRemoteMiniappsForBuild() 函数,检测并包含远程 miniapps(有 manifest.json 但没有 vite.config.ts 的目录)到最终的 ecosystem.json 输出。

验证

构建后 dist/miniapps/ecosystem.json 应包含:

  • forge (本地)
  • teleport (本地)
  • rwa-hub (远程) ← 之前缺失,现在修复

generateEcosystemDataForBuild was only scanning local miniapps,
ignoring remote miniapps downloaded by vite-plugin-remote-miniapps.

Added scanRemoteMiniappsForBuild to include remote miniapps
(directories with manifest.json but no vite.config.ts) in ecosystem.json.
@Gaubee Gaubee force-pushed the opencode/shiny-nebula branch from fdd960b to ffddaa6 Compare January 20, 2026 14:47
@Gaubee Gaubee merged commit ef93e6b into main Jan 20, 2026
8 of 10 checks passed
@Gaubee Gaubee deleted the opencode/shiny-nebula branch January 20, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants