feat: add WASM module configuration with pre-configured CDN URLs and update settings UI

This commit is contained in:
alam00000
2026-02-02 15:14:30 +05:30
parent 200359d2e2
commit 612f6f9a2d
10 changed files with 404 additions and 72 deletions

View File

@@ -36,6 +36,18 @@ npx wrangler secret put CPDF_SOURCE -c wasm-wrangler.toml
### 3. Configure BentoPDF
**Option A: Environment variables (recommended — zero-config for users)**
Set these in `.env.production` or pass as Docker build args:
```bash
VITE_WASM_PYMUPDF_URL=https://bentopdf-wasm-proxy.<your-subdomain>.workers.dev/pymupdf/
VITE_WASM_GS_URL=https://bentopdf-wasm-proxy.<your-subdomain>.workers.dev/gs/
VITE_WASM_CPDF_URL=https://bentopdf-wasm-proxy.<your-subdomain>.workers.dev/cpdf/
```
**Option B: Manual per-user configuration**
In BentoPDF's Advanced Settings (wasm-settings.html), enter:
| Module | URL |