Keep keyless mode with a trailing slash in the cloud API URL - #275
Open
danielgaskins wants to merge 2 commits into
Open
danielgaskins wants to merge 2 commits into
danielgaskins wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Shadow auto-approve: would not auto-approve because issues were found.
Fix all with cubic | Re-trigger cubic
Contributor
There was a problem hiding this comment.
0 issues found across 6 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Shadow auto-approve: would auto-approve. Normalizes trailing slashes on API base URLs so the cloud URL with a trailing slash keeps keyless/API-key behavior. Focused bug fix with regression tests covering URL classification, keyless request joining, and validation.
Re-trigger cubic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
isCustomApiUrl()now ignores trailing slashes when comparing an API URL with the default Firecrawl cloud URL.This keeps
https://api.firecrawl.dev/on the same keyless and authentication paths ashttps://api.firecrawl.dev. Custom API URLs are still treated as custom.I added regression coverage for URL classification, keyless mode, and API-key validation.
Testing
corepack pnpm run buildcorepack pnpm exec vitest run --maxWorkers=2 --reporter=dot --silentcorepack pnpm run type-checkcorepack pnpm run format:checkFixes #274
Summary by cubic
Fixes #274: trailing slashes in the cloud API URL no longer break keyless mode.
normalizeApiUrl()strips trailing slashes from the API base URL and is now applied wherever the URL is compared or joined, sohttps://api.firecrawl.dev///behaves likehttps://api.firecrawl.devfor both keyless request paths and API-key validation. Custom API URLs with trailing slashes are still treated as custom. Adds regression tests for URL classification, keyless request joining, and API-key validation.Written for commit 0782f17. Summary will update on new commits.