diff --git a/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts b/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts index f10bff3309a7..8966bf4b05a0 100644 --- a/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts +++ b/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts @@ -333,7 +333,7 @@ declare module '*.txt' { __INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, ), hydrate: !!ssrConfig, - useStream: ssrConfig.useStream || true, + useStream: ssrConfig.useStream ?? true, reactRouter5Compat: !!api.config.reactRouter5Compat, loadingComponent: api.appData.globalLoading, },