Skip to content

fix(miniapps): propagate wujieConfig to ecosystem.json for remote miniapps - #267

Merged
Gaubee merged 1 commit into
mainfrom
fix/wujie-config-propagation
Jan 21, 2026
Merged

Gaubee merged 1 commit into
mainfrom
fix/wujie-config-propagation

Conversation

@Gaubee

@Gaubee Gaubee commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

Problem

Remote miniapps (like rwa-hub) are missing runtime and wujieConfig fields in the deployed ecosystem.json.

Current deployed ecosystem.json:

{
  "id": "xin.dweb.rwahub",
  "url": "./rwa-hub/"
  // Missing: runtime, wujieConfig
}

Expected:

{
  "id": "xin.dweb.rwahub",
  "url": "./rwa-hub/",
  "runtime": "wujie",
  "wujieConfig": { "rewriteAbsolutePaths": true }
}

Root Cause

This commit was in the original feat/wujie-container-refactor branch but got lost during PR #265 merge.

Fix

  • Export RemoteMiniappConfig type from vite-plugin-remote-miniapps.ts
  • Add remoteMiniapps parameter to MiniappsPluginOptions
  • Pass remote config to scanRemoteMiniappsForBuild to extract runtime and wujieConfig
  • Extract remoteMiniappsConfig as shared variable in vite.config.ts

@Gaubee
Gaubee merged commit 8f9048e into main Jan 21, 2026
5 checks passed
@Gaubee
Gaubee deleted the fix/wujie-config-propagation branch January 21, 2026 09:58
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.

1 participant