Skip to content

fix(service): degrade invalid SANGFOR_CHUNK_URL to unconfigured inste… - #7740

Closed
sunjiaqi52777 wants to merge 1 commit into
labring:mainfrom
sunjiaqi52777:fix/sangfor-chunk-url-degrade
Closed

fix(service): degrade invalid SANGFOR_CHUNK_URL to unconfigured inste…#7740
sunjiaqi52777 wants to merge 1 commit into
labring:mainfrom
sunjiaqi52777:fix/sangfor-chunk-url-degrade

Conversation

@sunjiaqi52777

Copy link
Copy Markdown
Contributor

A malformed SANGFOR_CHUNK_URL previously aborted the whole service startup via env validation. Treat invalid URLs as unconfigured (with a warning) so intelligent chunking is simply unavailable rather than blocking the platform.

…ad of failing startup

A malformed SANGFOR_CHUNK_URL previously aborted the whole service startup
via env validation. Treat invalid URLs as unconfigured (with a warning) so
intelligent chunking is simply unavailable rather than blocking the platform.
Comment thread packages/service/env.ts
);

/** 可选 URL:格式非法时降级为未配置(不阻断启动),并打印告警,避免拖垮整个服务启动 */
const optionalUrlSchema = (name: string) =>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

不合法配置应该要拒绝启动

@sunjiaqi52777
sunjiaqi52777 deleted the fix/sangfor-chunk-url-degrade branch September 14, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants