Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(queue-worker): return URL instead of string for Windows file paths (#2036)
tombbeabf72c2c3
diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.tsindex 85ca9ea9b..c2275d4db 100644--- a/apps/api/src/services/queue-worker.ts+++ b/apps/api/src/services/queue-worker.ts@@ -362,10 +362,10 @@ let cantAcceptConnectionCount = 0;* @param filePath - The file path to convert* @returns A properly formatted path/URL for the current platform*/-function getWorkerPath(filePath: string): string {+function getWorkerPath(filePath: string): string | URL {if (process.platform === 'win32' && path.isAbsolute(filePath)) {// On Windows, convert absolute paths to file:// URLs for ESM compatibility- return pathToFileURL(filePath).href;+ return pathToFileURL(filePath);}return filePath;}