Initial commit: Loma PDF Editor with Coolify deploy setup
Browser-only PDF editor (React + Vite + pdf-lib + pdf.js + tesseract.js), plus a multi-stage Dockerfile that builds the SPA and serves it from nginx on port 80 with a /health endpoint for Coolify. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// Copies pdf.js cMaps and standard fonts into public/ so the viewer works offline.
|
||||
import { cpSync, existsSync } from 'node:fs';
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
const src = resolve('node_modules/pdfjs-dist');
|
||||
const dst = resolve('public/pdfjs');
|
||||
for (const dir of ['cmaps', 'standard_fonts']) {
|
||||
if (!existsSync(resolve(dst, dir))) cpSync(resolve(src, dir), resolve(dst, dir), { recursive: true });
|
||||
}
|
||||
Reference in New Issue
Block a user