diff --git a/api/botDetection/index.ts b/api/botDetection/index.ts index a038e899..31806b4f 100644 --- a/api/botDetection/index.ts +++ b/api/botDetection/index.ts @@ -3,9 +3,9 @@ * Combines user-agent patterns, header analysis, and behavioral heuristics */ -import { BOT_PATTERNS, GENERIC_BOT_REGEX } from './userAgentPatterns'; -import { analyzeHeaders } from './headerAnalysis'; -import { analyzeHeuristics } from './heuristics'; +import { BOT_PATTERNS, GENERIC_BOT_REGEX } from './userAgentPatterns.js'; +import { analyzeHeaders } from './headerAnalysis.js'; +import { analyzeHeuristics } from './heuristics.js'; export interface BotDetectionResult { isBot: boolean; diff --git a/api/ssrOG.ts b/api/ssrOG.ts index 82c9f11e..32c1744c 100644 --- a/api/ssrOG.ts +++ b/api/ssrOG.ts @@ -14,7 +14,7 @@ type VercelResponse = ServerResponse & { send: (body: string) => VercelResponse; }; -import { detectBot } from './botDetection/index'; +import { detectBot } from './botDetection/index.js'; interface PageData { title: string;