Currently, usage of Payload on Vercel has a limitation - uploads are limited by 4.5MB file size. This PR allows you to pass `clientUploads: true` to all existing storage adapters * Storage S3 * Vercel Blob * Google Cloud Storage * Uploadthing * Azure Blob And then, Payload will do uploads on the client instead. With the S3 Adapter it uses signed URLs and with Vercel Blob it does this - https://vercel.com/guides/how-to-bypass-vercel-body-size-limit-serverless-functions#step-2:-create-a-client-upload-route. Note that it doesn't mean that anyone can now upload files to your storage, it still does auth checks and you can customize that with `clientUploads.access` https://github.com/user-attachments/assets/5083c76c-8f5a-43dc-a88c-9ddc4527d91c Implements https://github.com/payloadcms/payload/discussions/7569 feature request.
104 lines
2.9 KiB
JSON
104 lines
2.9 KiB
JSON
{
|
|
"name": "@payloadcms/plugin-cloud-storage",
|
|
"version": "3.24.0",
|
|
"description": "The official cloud storage plugin for Payload CMS",
|
|
"homepage": "https://payloadcms.com",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/payloadcms/payload.git",
|
|
"directory": "packages/plugin-cloud-storage"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
|
|
"maintainers": [
|
|
{
|
|
"name": "Payload",
|
|
"email": "info@payloadcms.com",
|
|
"url": "https://payloadcms.com"
|
|
}
|
|
],
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./types": {
|
|
"import": "./src/types.ts",
|
|
"types": "./src/types.ts",
|
|
"default": "./src/types.ts"
|
|
},
|
|
"./utilities": {
|
|
"import": "./src/exports/utilities.ts",
|
|
"types": "./src/exports/utilities.ts",
|
|
"default": "./src/exports/utilities.ts"
|
|
},
|
|
"./client": {
|
|
"import": "./src/exports/client.ts",
|
|
"types": "./src/exports/client.ts",
|
|
"default": "./src/exports/client.ts"
|
|
}
|
|
},
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"files": [
|
|
"dist",
|
|
"*.js",
|
|
"*.d.ts"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm build:types && pnpm build:swc ",
|
|
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
"clean": "rimraf -g {dist,*.tsbuildinfo}",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"prepublishOnly": "pnpm clean && pnpm turbo build",
|
|
"test": "echo \"No tests available.\""
|
|
},
|
|
"dependencies": {
|
|
"@payloadcms/ui": "workspace:*",
|
|
"find-node-modules": "^2.1.3",
|
|
"range-parser": "^1.2.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/find-node-modules": "^2.1.2",
|
|
"@types/react": "19.0.1",
|
|
"@types/react-dom": "19.0.1",
|
|
"payload": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"payload": "workspace:*",
|
|
"react": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
|
|
"react-dom": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020"
|
|
},
|
|
"publishConfig": {
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./types": {
|
|
"import": "./dist/types.js",
|
|
"types": "./dist/types.d.ts",
|
|
"default": "./dist/types.js"
|
|
},
|
|
"./utilities": {
|
|
"import": "./dist/exports/utilities.js",
|
|
"types": "./dist/exports/utilities.d.ts",
|
|
"default": "./dist/exports/utilities.js"
|
|
},
|
|
"./client": {
|
|
"import": "./dist/exports/client.js",
|
|
"types": "./dist/exports/client.d.ts",
|
|
"default": "./dist/exports/client.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"registry": "https://registry.npmjs.org/",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
}
|