Skip to content

Beta2.1 - #1417

Merged
cmliu merged 3 commits into
mainfrom
beta2.1
Jul 29, 2026
Merged

Beta2.1#1417
cmliu merged 3 commits into
mainfrom
beta2.1

Conversation

@cmliu

@cmliu cmliu commented Jul 29, 2026

Copy link
Copy Markdown
Owner

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

Environment Variable Logic Update:

  • Changed the default value of PRELOAD_RACE_DIAL to false (disabled); it is now only enabled if set to 1 or true. [1] [2]

Documentation Updates:

  • Updated the README.md to clarify the new default (disabled) and how to enable the preloading race dial feature.
  • Added a changelog entry describing the change and referencing the related 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:10
@cmliu
cmliu merged commit 0b5877f into main Jul 29, 2026
1 check 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 updates the PRELOAD_RACE_DIAL environment variable semantics so that “preload race dial” is disabled by default and only enabled when explicitly configured, and aligns the project documentation/changelog with that behavior.

Changes:

  • Changed PRELOAD_RACE_DIAL default from enabled to disabled, and updated the runtime enablement logic.
  • Updated README environment variable documentation to reflect the new default and enablement values.
  • Added a changelog entry and bumped the _worker.js version string.

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 docs to “off by default; enable with 1/true”.
CHANGELOG Records the behavior change for PRELOAD_RACE_DIAL and links to the related commit.
_worker.js Sets the default to disabled and adjusts the env var parsing logic; bumps Version.

💡 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