-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 的 getManifest()支持req时传入sourceDir表示SSR产物目录 #11715
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
53f38f2
fix: dev环境构建SSR server.js时,环境判断错误导致输出的dev产物带上了hash
7f6d6d5
Update packages/preset-umi/src/features/ssr/webpack/webpack.ts
gwuhaolin 5d004a1
fix: dev环境构建SSR server.js时,环境判断错误导致输出的dev产物带上了hash
3fc62cf
Merge branch 'umijs:master' into master
gwuhaolin 5b0946a
feature: 支持自定义SSR构建目标,默认为node,可配置为webworker以支持运行在类似Cloudflare Workers的平台
7fe8bdc
feature: getManifest支持传入sourceDir表示SSR产物目录
542304a
feature: getManifest支持传入sourceDir表示SSR产物目录
335e6a6
fix: rendertoreadablestream is not a function
e7fb0c1
Revert "feature: 支持自定义SSR构建目标,默认为node,可配置为webworker以支持运行在类似Cloudflare…
64a9a42
fix: rendertoreadablestream is not a function
bfcd087
Update packages/server/src/ssr.ts
gwuhaolin d1a6e33
Update packages/server/src/ssr.ts
gwuhaolin e9ced7f
fix: 还原g_getAssets
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看起来这里需要注释注明一下
sourceDir
是给 serverless 函数 create handler 专门用的,因为 esbuild 用到的g_getAssets
没法传sourceDir
:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.