Skip to content

Commit 5ec1eb6

Browse files
committed
fix(rsc-mf): patch hashed RemoteNestedMixed expose chunks
1 parent c6b3ab0 commit 5ec1eb6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/integration/rsc-mf/host/server/modern.server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ const proxyRemoteFederationAsset: MiddlewareHandler = async (c, next) => {
110110
}
111111

112112
const shouldPatchNestedMixed =
113-
pathname === '/static/js/async/__federation_expose_RemoteNestedMixed.js';
113+
pathname.startsWith(
114+
'/static/js/async/__federation_expose_RemoteNestedMixed',
115+
) && pathname.endsWith('.js');
114116
if (shouldPatchNestedMixed) {
115117
let chunkText = await upstream.text();
116118
chunkText = `${chunkText}${createRemoteNestedMixedAliasChunk()}`;

0 commit comments

Comments
 (0)