fix: revert cropperjs dependency to version 1.6.2 and adjust Docker build commands for CORS proxy secrets

This commit is contained in:
alam00000
2026-03-01 21:29:13 +05:30
parent 34f12655c1
commit 957b78fafd
7 changed files with 40 additions and 145 deletions

View File

@@ -873,7 +873,10 @@ The **Digital Signature** tool uses a signing library that may need to fetch cer
```
Or with Docker:
```bash
docker build --build-arg VITE_CORS_PROXY_URL="https://your-worker-url.workers.dev" -t your-bentopdf .
export VITE_CORS_PROXY_URL="https://your-worker-url.workers.dev"
DOCKER_BUILDKIT=1 docker build \
--secret id=VITE_CORS_PROXY_URL,env=VITE_CORS_PROXY_URL \
-t your-bentopdf .
```
#### Production Security Features
@@ -927,6 +930,14 @@ npx wrangler secret put PROXY_SECRET
# Set in build environment
VITE_CORS_PROXY_SECRET=your-secret npm run build
# Or with Docker (optional; URL secret also shown for completeness)
export VITE_CORS_PROXY_URL="https://your-worker-url.workers.dev"
export VITE_CORS_PROXY_SECRET="your-secret"
DOCKER_BUILDKIT=1 docker build \
--secret id=VITE_CORS_PROXY_URL,env=VITE_CORS_PROXY_URL \
--secret id=VITE_CORS_PROXY_SECRET,env=VITE_CORS_PROXY_SECRET \
-t your-bentopdf .
```
### 📦 Version Management