From 1614c7f9d1cf3cdeac9143c88430bc5aae246861 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 22:50:22 +0000 Subject: [PATCH] Fix: Add .js extensions to bot detection imports --- api/botDetection/index.ts | 6 +++--- api/ssrOG.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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;