Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Trailing slash on cloud API URL disables keyless mode

未关闭 适合新手
#274 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
74/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

从 isCustomApiUrl() 开始,这里描述了原始 URL 的比较,并跟踪其对 isKeylessMode() 和 cloud API-key 验证的影响。为带末尾斜杠和不带末尾斜杠的 cloud URL,以及一个真正的自定义 URL 添加覆盖测试。完成的标准是两种 cloud URL 形式的行为完全一致,同时自定义 URL 仍保持为自定义 URL。

由索引模型根据 Issue 内容生成。

描述

Setting FIRECRAWL_API_URL or --api-url to https://api.firecrawl.dev/ makes the CLI treat the official cloud API as a custom server.

The trailing slash changes several auth decisions:

  • isKeylessMode() returns false
  • cloud API-key validation is skipped
  • scrape and search use the authenticated SDK path without a key

https://api.firecrawl.dev and https://api.firecrawl.dev/ should behave the same.

The comparison in isCustomApiUrl() currently uses the raw string. I’ll normalize trailing slashes before comparing the URL and add coverage for cloud and genuinely custom URLs.

主要语言
TypeScript
星标
635
派生
106
平均合并
4 小时 52 分钟
30 天内合并 PR
43

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

firecrawl/cli 的其他 Issue

查看 firecrawl/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。