We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response
3.0.0-beta.55
v20.14.0
Next.js 15 RC
staticURL key is not accepted by TypeScript in the upload object,
upload
staticURL
This gives a typescript error: Object literal may only specify known properties, and 'staticURL' does not exist in type 'UploadConfig'
The text was updated successfully, but these errors were encountered:
Static URL has been deprecated, in the case of using an adapter you can set a generateFileURL function instead https://payloadcms.com/docs/beta/upload/storage-adapters#collection-specific-options
generateFileURL
Otherwise in the API request the media item will have a url string for fetching the file itself.
Sorry, something went wrong.
No branches or pull requests
Link to reproduction
No response
Payload Version
3.0.0-beta.55
Node Version
v20.14.0
Next.js Version
Next.js 15 RC
Describe the Bug
staticURL key is not accepted by TypeScript in the
upload
object,Reproduction Steps
upload
objectstaticURL
keyThis gives a typescript error:
Object literal may only specify known properties, and 'staticURL' does not exist in type 'UploadConfig'
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: