LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
fix: Replace CDN URL with local import for PDF worker (#1720)
Jaseem Jas8ddb575783a5
diff --git a/frontend/src/helpers/pdfWorkerConfig.js b/frontend/src/helpers/pdfWorkerConfig.jsindex 5c9e5f12b..30322d7a7 100644--- a/frontend/src/helpers/pdfWorkerConfig.js+++ b/frontend/src/helpers/pdfWorkerConfig.js@@ -1,4 +1,3 @@-// Use CDN to load the worker file-// Version must match the installed pdfjs-dist version (3.11.174 via @react-pdf-viewer/core)-export const PDF_WORKER_URL =- "https://unpkg.com/[email protected]/build/pdf.worker.min.js";+// Load the worker file from the installed pdfjs-dist package+// The ?url suffix tells Webpack 5 to return the URL of the asset+export { default as PDF_WORKER_URL } from "pdfjs-dist/build/pdf.worker.min.js?url";