* feat: make upload file size limits configurable via .env Add UPLOAD_MAX_*_MB environment variables for documents, images, videos, exercise assignment files, AI assistant documents, landing page images, and media thumbnails. API presign routes validate file size server-side; dashboard UI reads the same limits from layout data. * chore: wire upload limit env vars through Docker compose and docs Pass UPLOAD_MAX_*_MB from the root .env into api and dashboard containers in both compose files, document them in .env.example and self-hosting guides. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * docs: cross-link upload limits in README, Railway, Coolify, and Cloudflare guides Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix: address PR review feedback on upload limits - Restore 5 MB default for thumbnail uploads (edit-asset-dialog regression) - Add getResolvedUploadLimits() fallback for Storybook/tests - Cache core getUploadLimits() like the dashboard helper - Document presign fileSize as advisory; allow zero-byte fileSize in schema - Only send fileSize to presign when greater than zero * docs: remove upload limits from Cloudflare setup guide ---------
80 lines
2.0 KiB
JSON
80 lines
2.0 KiB
JSON
{
|
|
"name": "@cio/utils",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./constants": {
|
|
"types": "./dist/constants/index.d.ts",
|
|
"default": "./dist/constants/index.js"
|
|
},
|
|
"./constants/*": {
|
|
"types": "./dist/constants/*.d.ts",
|
|
"default": "./dist/constants/*.js"
|
|
},
|
|
"./plans": {
|
|
"types": "./dist/plans/index.d.ts",
|
|
"default": "./dist/plans/index.js"
|
|
},
|
|
"./senja": {
|
|
"types": "./dist/senja/index.d.ts",
|
|
"default": "./dist/senja/index.js"
|
|
},
|
|
"./agent-models": {
|
|
"types": "./dist/agent-models/index.d.ts",
|
|
"default": "./dist/agent-models/index.js"
|
|
},
|
|
"./validation": {
|
|
"types": "./dist/validation/index.d.ts",
|
|
"default": "./dist/validation/index.js"
|
|
},
|
|
"./validation/constants": {
|
|
"types": "./dist/validation/constants.d.ts",
|
|
"default": "./dist/validation/constants.js"
|
|
},
|
|
"./validation/*": {
|
|
"types": "./dist/validation/*/index.d.ts",
|
|
"default": "./dist/validation/*/index.js"
|
|
},
|
|
"./functions": {
|
|
"types": "./dist/functions/index.d.ts",
|
|
"default": "./dist/functions/index.js"
|
|
},
|
|
"./functions/*": {
|
|
"types": "./dist/functions/*.d.ts",
|
|
"default": "./dist/functions/*.js"
|
|
},
|
|
"./errors": {
|
|
"types": "./dist/errors/index.d.ts",
|
|
"default": "./dist/errors/index.js"
|
|
},
|
|
"./config/upload-limits": {
|
|
"types": "./dist/config/upload-limits.d.ts",
|
|
"default": "./dist/config/upload-limits.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc && tsc-alias",
|
|
"dev": "tsc --watch",
|
|
"format": "prettier --write ."
|
|
},
|
|
"peerDependencies": {
|
|
"zod": "^4.1.8"
|
|
},
|
|
"dependencies": {
|
|
"@cio/question-types": "workspace:*",
|
|
"@cio/tsconfig": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"tsc-alias": "^1.8.16",
|
|
"tsx": "^4.7.1",
|
|
"typescript": "^5.5.2",
|
|
"zod": "^4.1.8"
|
|
}
|
|
}
|