feat: Sprint 1 — 7 data quality quick wins

WP-1: YouTube channel ID regex {20,} → {22} (exactly 24 chars)
WP-2: Naver Place category filtering in enrich-channels (성형/피부)
WP-3: Google Maps stores mapsUrl separately from clinicWebsite
WP-4: Naver Blog separates officialBlogUrl from search results
WP-5: 강남언니 rawRating + normalized rating (≤5 → ×2), Firecrawl
      prompt explicitly states "out of 10, NOT out of 5"
WP-6: Perplexity model centralized in _shared/config.ts (env override)
WP-7: Apify Instagram timeout 30s → 45s

Frontend: transformReport uses mapsUrl and officialBlogUrl when available

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Opus 4.6 committed 2026-04-04 23:35:40 +09:00
1 parent 1071328574
commit 80c57147e7
8 files changed
+80 -39

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
/**
* Shared configuration constants for Edge Functions.
* Centralizes API model names and defaults to prevent hardcoding.
*/
export const PERPLEXITY_MODEL = Deno.env.get("PERPLEXITY_MODEL") || "sonar";
+1 -1
View File
@@ -66,7 +66,7 @@ async function verifyYouTube(handle: string, apiKey: string): Promise<VerifiedCh
}
// Try as channel ID directly (starts with UC)
if (cleanHandle.startsWith('UC')) {
if (cleanHandle.startsWith('UC') && cleanHandle.length === 24) {
const res = await fetch(`${YT_BASE}/channels?part=id,snippet&id=${cleanHandle}&key=${apiKey}`);
const data = await res.json();
if (data.items?.[0]) {