Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSR适配ER render #11698

Merged
merged 18 commits into from
Oct 7, 2023
Merged

SSR适配ER render #11698

merged 18 commits into from
Oct 7, 2023

Conversation

gwuhaolin
Copy link
Member

@gwuhaolin gwuhaolin commented Sep 28, 2023

  • createUmiHandler只返回根节点的内容,不要返回整个 html 的
  • SSR输出的server.js路径带上hash
  • server.js中的build-manifest.json文件路径支持SSR_RESOURCE_DIR环境变量
  • 返回流式response renderToPipeableStream,提升SSR首字节时间

@vercel
Copy link

vercel bot commented Sep 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
umi ⬜️ Ignored (Inspect) Visit Preview Oct 6, 2023 5:29am

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Attention: 23 lines in your changes are missing coverage. Please review.

Comparison is base (9c5e432) 28.93% compared to head (6e6d477) 28.93%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11698      +/-   ##
==========================================
- Coverage   28.93%   28.93%   -0.01%     
==========================================
  Files         485      485              
  Lines       14767    14773       +6     
  Branches     3493     3498       +5     
==========================================
+ Hits         4273     4274       +1     
- Misses       9735     9739       +4     
- Partials      759      760       +1     
Files Coverage Δ
packages/preset-umi/src/features/ssr/ssr.ts 0.00% <ø> (ø)
packages/renderer-react/src/server.tsx 0.00% <0.00%> (ø)
packages/preset-umi/src/features/ssr/utils.ts 12.50% <14.28%> (+3.40%) ⬆️
...ges/preset-umi/src/features/ssr/webpack/webpack.ts 0.00% <0.00%> (ø)
packages/server/src/ssr.ts 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

packages/renderer-react/src/server.tsx Outdated Show resolved Hide resolved
packages/preset-umi/src/features/ssr/webpack/webpack.ts Outdated Show resolved Hide resolved
packages/preset-umi/src/features/ssr/webpack/webpack.ts Outdated Show resolved Hide resolved
packages/preset-umi/src/features/ssr/webpack/webpack.ts Outdated Show resolved Hide resolved
packages/preset-umi/src/features/ssr/webpack/webpack.ts Outdated Show resolved Hide resolved
packages/preset-umi/src/features/ssr/webpack/webpack.ts Outdated Show resolved Hide resolved
packages/preset-umi/src/features/ssr/webpack/webpack.ts Outdated Show resolved Hide resolved
packages/preset-umi/src/features/ssr/webpack/webpack.ts Outdated Show resolved Hide resolved
packages/preset-umi/templates/server.tpl Outdated Show resolved Hide resolved
@sorrycc sorrycc merged commit 704af06 into umijs:master Oct 7, 2023
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants