fix(edgeone): 修复 MAX_REQUEST_TIMES 被版本号替换误伤#995
Merged
Conversation
Contributor
审阅者指南(在小型 PR 中折叠)审阅者指南修复由自动版本替换造成的常量名称错误,并在 EdgeOne Pages 云函数入口中将 VERSION 常量更新到 1.7.12。 文件级更改
提示和命令与 Sourcery 交互
自定义你的体验访问你的 dashboard 来:
获取帮助Original review guide in EnglishReviewer's guide (collapsed on small PRs)Reviewer's GuideFixes a constant name corruption from an automated version replacement and bumps the VERSION constant to 1.7.12 in the EdgeOne Pages cloud function entrypoint. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
嗨——我已经审查了你的改动,看起来非常棒!
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈来改进评审质量。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
修复 EdgeOne Pages 部署时的语法解析错误
提交
19d27ff8efd4dff3f552fbc4a63554502c1fe28c中,版本号替换误将MAX_REQUEST_TIMES替换为1.7.12EQUEST_TIMES,导致 EdgeOne Pages 部署时 Babel 解析cloud-functions/index.js失败。变更
1.7.12EQUEST_TIMES→MAX_REQUEST_TIMESVERSION同步为1.7.12影响
修复后
cloud-functions/index.js可以被 EdgeOne CLI 正常解析,避免部署阶段出现InvalidOrMissingExponent语法错误。