mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-10 01:14:17 +01:00
feat: add WASM module configuration with pre-configured CDN URLs and update settings UI
This commit is contained in:
1 parent
200359d2e2
commit
612f6f9a2d
10 files changed
+404
-72
No files matched your search
@@ -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 |
|
||||
|
||||
Reference in new issue
Block a user