feat: per-URL clinic folder — auto-save all scraped data to Storage
Each analysis run now creates a dedicated folder in Supabase Storage:
clinics/{domain}/{reportId}/
├── scrape_data.json (discover-channels: website scrape + Perplexity)
├── channel_data.json (collect-channel-data: all channel API results)
└── report.json (generate-report: final AI-generated report)
Screenshots also moved from {reportId}/{id}.png to:
clinics/{domain}/{reportId}/screenshots/{id}.png
Migration: 20260407_clinic_data_storage.sql creates 'clinic-data' bucket
(private, 10MB/file, JSON only). All writes are non-fatal — pipeline
continues even if Storage upload fails.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
ae87953fa0
commit
2cda26a649
5 files changed
+103
-3
No files matched your search
@@ -39,6 +39,15 @@ export const mockReport: MarketingReport = {
|
||||
nearestStation: '9호선 신논현역 3번 출구 50m',
|
||||
phone: '02-539-1177',
|
||||
domain: 'viewclinic.com',
|
||||
source: 'registry' as const,
|
||||
registryData: {
|
||||
district: '강남',
|
||||
branches: '본점 1개',
|
||||
brandGroup: '프리미엄',
|
||||
naverPlaceUrl: 'https://map.naver.com/v5/entry/place/1234567890',
|
||||
gangnamUnniUrl: 'https://www.gangnamunni.com/hospitals/view',
|
||||
googleMapsUrl: 'https://maps.google.com/?q=뷰성형외과',
|
||||
},
|
||||
logoImages: {
|
||||
circle: '/assets/clients/view-clinic/logo-circle.png',
|
||||
horizontal: '/assets/clients/view-clinic/logo-horizontal.png',
|
||||
|
||||
Reference in new issue
Block a user