cbac3ad3d0
Fixes asset loading/processing on staging/previews by introducing a new image processing worker. This worker acts as a proxy for our various image hosts and resizes/optimizes/caches images on the fly. Like the old bookmark worker, this one is deployed in an ad-hoc fashion as it works across environments and we're not likely to change it often. ### Change type - [x] `other`
37 lines
968 B
JSON
37 lines
968 B
JSON
{
|
|
"name": "images.tldraw.com",
|
|
"description": "A Cloudflare Worker to resize and optimize images",
|
|
"version": "2.0.0",
|
|
"private": true,
|
|
"author": {
|
|
"name": "tldraw GB Ltd.",
|
|
"email": "hello@tldraw.com"
|
|
},
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"dev": "yarn run -T tsx ../../scripts/workers/dev.ts",
|
|
"test-ci": "lazy inherit --passWithNoTests",
|
|
"test": "yarn run -T jest --passWithNoTests",
|
|
"test-coverage": "lazy inherit --passWithNoTests",
|
|
"lint": "yarn run -T tsx ../../scripts/lint.ts"
|
|
},
|
|
"dependencies": {
|
|
"@tldraw/validate": "workspace:*",
|
|
"@tldraw/worker-shared": "workspace:*",
|
|
"itty-router": "^4.0.13"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^4.20240620.0",
|
|
"lazyrepo": "0.0.0-alpha.27",
|
|
"wrangler": "3.62.0"
|
|
},
|
|
"jest": {
|
|
"preset": "config/jest/node",
|
|
"moduleNameMapper": {
|
|
"^~(.*)": "<rootDir>/src/$1"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(nanoid|escape-string-regexp)/)"
|
|
]
|
|
}
|
|
}
|