Add hot-update files for layout and webpack with eval-source-map configuration
- Created multiple hot-update JavaScript files for app layout and webpack. - Each file includes a warning about the use of "eval-source-map" for development purposes. - Added source mapping for CSS files in the app layout. - Generated corresponding hot-update JSON files to manage module updates.
This commit is contained in:
@@ -8,6 +8,7 @@ import { clean } from '../pipeline/clean.js';
|
||||
import { extractStructure } from '../pipeline/structure.js';
|
||||
import { writeToPocketBase, markDocumentFailed } from '../pipeline/write.js';
|
||||
import { embedAndStore } from '../pipeline/embed.js';
|
||||
import { getPocketBase } from '../lib/pocketbase.js';
|
||||
import type { Job, JobProgress, IngestBody } from '../types.js';
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -69,8 +70,11 @@ async function runPipeline(jobId: string): Promise<void> {
|
||||
let tempPath: string | null = null;
|
||||
|
||||
try {
|
||||
// Stage 0: download file from PocketBase to temp dir
|
||||
const res = await fetch(job.fileUrl);
|
||||
// Stage 0: download file from PocketBase to temp dir (auth required)
|
||||
const pbClient = await getPocketBase();
|
||||
const res = await fetch(job.fileUrl, {
|
||||
headers: { Authorization: pbClient.authStore.token ?? '' },
|
||||
});
|
||||
if (!res.ok) throw new Error(`Failed to download file: ${res.status}`);
|
||||
const buffer = Buffer.from(await res.arrayBuffer());
|
||||
tempPath = join(tmpdir(), `ingest-${jobId}-${job.filename}`);
|
||||
|
||||
Reference in New Issue
Block a user