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.
89 lines
1.5 KiB
JSON
89 lines
1.5 KiB
JSON
{
|
|
"extends": "./tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"composite": false,
|
|
"noEmit": true,
|
|
"baseUrl": ".",
|
|
|
|
},
|
|
"references": [
|
|
{
|
|
"path": "./packages/create-payload-app"
|
|
},
|
|
{
|
|
"path": "./packages/db-mongodb"
|
|
},
|
|
{
|
|
"path": "./packages/db-postgres"
|
|
},
|
|
{
|
|
"path": "./packages/drizzle"
|
|
},
|
|
{
|
|
"path": "./packages/graphql"
|
|
},
|
|
{
|
|
"path": "./packages/live-preview"
|
|
},
|
|
{
|
|
"path": "./packages/live-preview-react"
|
|
},
|
|
{
|
|
"path": "./packages/live-preview-vue"
|
|
},
|
|
{
|
|
"path": "./packages/next"
|
|
},
|
|
{
|
|
"path": "./packages/payload"
|
|
},
|
|
{
|
|
"path": "./packages/plugin-cloud-storage"
|
|
},
|
|
{
|
|
"path": "./packages/storage-s3"
|
|
},
|
|
{
|
|
"path": "./packages/payload-cloud"
|
|
},
|
|
{
|
|
"path": "./packages/plugin-form-builder"
|
|
},
|
|
{
|
|
"path": "./packages/plugin-nested-docs"
|
|
},
|
|
{
|
|
"path": "./packages/plugin-redirects"
|
|
},
|
|
{
|
|
"path": "./packages/plugin-search"
|
|
},
|
|
{
|
|
"path": "./packages/plugin-seo"
|
|
},
|
|
{
|
|
"path": "./packages/plugin-stripe"
|
|
},
|
|
{
|
|
"path": "./packages/plugin-multi-tenant"
|
|
},
|
|
{
|
|
"path": "./packages/richtext-slate"
|
|
},
|
|
{
|
|
"path": "./packages/richtext-lexical"
|
|
},
|
|
{
|
|
"path": "./packages/translations"
|
|
},
|
|
{
|
|
"path": "./packages/ui"
|
|
},
|
|
],
|
|
"include": [
|
|
"${configDir}/src",
|
|
".next/types/**/*.ts",
|
|
"./scripts/**/*.ts",
|
|
]
|
|
}
|