Skip to content

Commit

Permalink
fix(react): remote url port depends on serve target
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi committed Nov 24, 2023
1 parent 0df8293 commit adbec1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/module-federation/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import { readCachedProjectConfiguration } from 'nx/src/project-graph/project-graph';

export function getFunctionDeterminateRemoteUrl(isServer: boolean = false) {
const target = isServer ? 'serve-server' : 'serve';
const target = 'serve';
const remoteEntry = isServer ? 'server/remoteEntry.js' : 'remoteEntry.js';

return function (remote: string) {
Expand Down

0 comments on commit adbec1b

Please sign in to comment.