Skip to content

Commit

Permalink
fix(react): host should use module-federation-ssr-dev-server (#13794)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8ffa9fd)
  • Loading branch information
Coly010 authored and FrozenPandaz committed Dec 19, 2022
1 parent 9c9328d commit f44c781
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react/src/generators/host/lib/setup-ssr-for-host.ts
Expand Up @@ -5,6 +5,7 @@ import {
joinPathFragments,
names,
readProjectConfiguration,
updateProjectConfiguration,
} from '@nrwl/devkit';
import { runTasksInSerial } from '@nrwl/workspace/src/utilities/run-tasks-in-serial';

Expand All @@ -19,7 +20,10 @@ export async function setupSsrForHost(
defaultRemoteManifest: { name: string; port: number }[]
) {
const tasks: GeneratorCallback[] = [];
const project = readProjectConfiguration(tree, appName);
let project = readProjectConfiguration(tree, appName);
project.targets.serve.executor =
'@nrwl/react:module-federation-ssr-dev-server';
updateProjectConfiguration(tree, appName, project);

generateFiles(
tree,
Expand Down

0 comments on commit f44c781

Please sign in to comment.