Skip to content

[codex] Support Windows custom protocol URLs#25

Draft
Nsttt wants to merge 1 commit into
mainfrom
codex/windows-protocol-url
Draft

[codex] Support Windows custom protocol URLs#25
Nsttt wants to merge 1 commit into
mainfrom
codex/windows-protocol-url

Conversation

@Nsttt

@Nsttt Nsttt commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Emit Tauri's Windows/Android custom-protocol URL shape from @module-federation/tauri
  • Resolve http://module-federation.localhost/... requests back to the real remote URL in the Rust plugin
  • Add regression coverage for legacy custom-scheme URLs and Windows protocol URLs
  • Document the platform-specific protocol behavior

Root Cause

Tauri custom protocols do not use the same URL shape on every platform. macOS, iOS, and Linux can use module-federation://..., but Windows and Android route custom protocols through http://<scheme>.localhost/....

The runtime package always emitted module-federation://localhost:3002/..., which can fail in Windows WebView2 before the Tauri protocol handler gets a usable request.

Fixes #20.

Validation

  • cargo test --manifest-path packages/tauri-plugin/Cargo.toml
  • pnpm --filter @module-federation/tauri build
  • pnpm build

Note: validated locally on macOS with unit coverage for the Windows URL form; this still needs confirmation on a Windows machine.

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.

Failed to load script resources. #RUNTIME-008

1 participant