Skip to content

Alpha2.1 - #1416

Merged
cmliu merged 2 commits into
beta2.1from
alpha2.1
Jul 29, 2026
Merged

Alpha2.1#1416
cmliu merged 2 commits into
beta2.1from
alpha2.1

Conversation

@cmliu

@cmliu cmliu commented Jul 29, 2026

Copy link
Copy Markdown
Owner

This pull request updates the logic for the PRELOAD_RACE_DIAL environment variable, changing its default behavior from enabled to disabled. Now, preloading for race dialing is off by default and must be explicitly enabled by setting the variable to 1 or true. The documentation in README.md and the changelog have been updated to reflect this change.

Environment Variable Logic Changes:

  • Changed the default value of PRELOAD_RACE_DIAL to false (preloading race dialing is now off by default); it will only be enabled if set to 1 or true. (_worker.js, README.md) [1] [2] [3]

Documentation Updates:

  • Updated the README.md to clarify the new default and usage of PRELOAD_RACE_DIAL.
  • Added a changelog entry describing the change and referencing the relevant commit.

Versioning:

  • Updated the version string in _worker.js to reflect the new release date.

Copilot AI review requested due to automatic review settings July 29, 2026 16:05
@cmliu
cmliu merged commit 072a925 into beta2.1 Jul 29, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request changes the default behavior of the PRELOAD_RACE_DIAL environment variable so that preloading race dialing is disabled by default and only enabled when explicitly set to 1 or true, with accompanying documentation and changelog updates.

Changes:

  • Default 预加载竞速拨号 to false and require explicit PRELOAD_RACE_DIAL=1|true to enable it.
  • Update README environment variable documentation for the new default/enable semantics.
  • Add a changelog entry and bump the embedded version timestamp.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
README.md Updates PRELOAD_RACE_DIAL documentation to reflect “off by default; enable with 1/true”.
CHANGELOG Adds a release note entry describing the PRELOAD_RACE_DIAL default change.
_worker.js Switches default preloading behavior to disabled and updates the env var parsing logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread _worker.js
const 访问路径 = url.pathname.slice(1).toLowerCase();
调试日志打印 = ['1', 'true'].includes(env.DEBUG) || 调试日志打印;
预加载竞速拨号 = !['0', 'false'].includes(String(env.PRELOAD_RACE_DIAL ?? '').trim().toLowerCase());
预加载竞速拨号 = ['1', 'true'].includes(env.PRELOAD_RACE_DIAL) || 预加载竞速拨号;
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.

2 participants