fixed docker

This commit is contained in:
2026-02-04 15:37:59 +00:00
parent 6d271ef65b
commit 025ce8f763
16 changed files with 135 additions and 93 deletions

View File

@@ -180,13 +180,20 @@ Return JSON:
const analysis = JSON.parse(jsonStr)
return {
id: result.url,
title: result.title,
url: result.url,
platform: result.source,
source: result.source,
snippet: result.snippet.slice(0, 300),
relevanceScore: analysis.relevanceScore || 0,
painPoints: analysis.painPoints || [],
suggestedApproach: analysis.suggestedApproach || ''
emotionalIntensity: (analysis.painPoints || []).length > 2 ? "high" : (analysis.painPoints || []).length > 0 ? "medium" : "low",
intent: "looking",
matchedKeywords: [],
matchedProblems: analysis.painPoints || [],
status: "new",
suggestedApproach: analysis.suggestedApproach || '',
softPitch: false,
}
} catch (e) {
// Fallback simple analysis
@@ -195,13 +202,20 @@ Return JSON:
const relevance = Math.min(overlap / Math.max(product.keywords.length * 0.5, 1), 1)
return {
id: result.url,
title: result.title,
url: result.url,
platform: result.source,
source: result.source,
snippet: result.snippet.slice(0, 300),
relevanceScore: relevance,
painPoints: ['Related to product domain'],
suggestedApproach: 'Share relevant insights about their problem'
emotionalIntensity: "low",
intent: "looking",
matchedKeywords: product.keywords.slice(0, 5),
matchedProblems: ['Related to product domain'],
status: "new",
suggestedApproach: 'Share relevant insights about their problem',
softPitch: false,
}
}
}

View File

@@ -24,7 +24,7 @@ export async function scrapeWebsite(url: string): Promise<ScrapedContent> {
let browser
try {
browser = await puppeteer.launch({
headless: 'new',
headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox']
})