Skip to content

Commit

Permalink
chore: disable transform ip when disableSSR
Browse files Browse the repository at this point in the history
  • Loading branch information
2heal1 committed Dec 30, 2024
1 parent d0436fa commit 1516731
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/modernjs/src/cli/configPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ export const moduleFederationConfigPlugin = (
const bundlerType =
useAppContext().bundlerType === 'rspack' ? 'rspack' : 'webpack';
const ipv4 = getIPV4();
const enableSSR = Boolean(modernjsConfig?.server?.ssr);
const enableSSR = userConfig.userConfig?.disableSSR
? false
: Boolean(modernjsConfig?.server?.ssr);

if (userConfig.remoteIpStrategy === undefined) {
if (!enableSSR) {
Expand Down

0 comments on commit 1516731

Please sign in to comment.