Skip to content

Trailing slash on cloud API URL disables keyless mode #274

Description

@danielgaskins

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions