feat: replace Cloudflare Worker with Defuddle API - #21
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Create Next.js API route that proxies to defuddle.md hosted service, removing the dependency on the self-hosted Cloudflare Worker for content extraction. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pass the target URL directly as a path to match the documented API usage pattern (curl defuddle.md/example.com). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Cloudflare bot protection blocks Vercel datacenter IPs (403), so server-side proxy doesn't work. Move the fetch to the client side where browser requests pass through Cloudflare. Defuddle API supports CORS *, so this works without a server route. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Document the investigation, Cloudflare bot protection issue, and client-side direct call approach. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Delete workers/extract/ directory, worker spec tests, env vars (NEXT_PUBLIC_EXTRACT_API_URL), and replace-api-to-worker feature from spec.yaml. Update test script to remove worker test run. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All test helpers and spec tests now mock fetch responses as text/markdown with YAML frontmatter, matching the Defuddle API response format. Skip ALIGN-001 (webpage thumbnail) as Defuddle API doesn't include thumbnails in frontmatter. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
toy-crane
force-pushed
the
test-defuddle-api
branch
from
April 8, 2026 01:59
2da65c1 to
0af03bc
Compare
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.
Summary
app/api/extract/route.ts)use-extract훅에서NEXT_PUBLIC_EXTRACT_API_URL환경변수 의존 제거,/api/extract직접 호출로 변경Test plan
bun run dev로 로컬 실행 후 일반 웹페이지 URL 추출 테스트🤖 Generated with Claude Code