@payloadcms/plugin-cloud-storage 3.0.0-beta.30 → 3.0.0-beta.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -18
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -19,20 +19,13 @@ This package is now best used for implementing custom storage solutions or third
19
19
 
20
20
  ## Usage
21
21
 
22
- Add this package into your dependencies executing this code in your command line:
23
-
24
- `yarn add @payloadcms/plugin-cloud-storage`
25
-
26
- Now install this plugin within your Payload as follows:
27
-
28
22
  ```ts
29
23
  import { buildConfig } from 'payload/config'
30
- import path from 'path'
31
- import { cloudStorage } from '@payloadcms/plugin-cloud-storage'
24
+ import { cloudStoragePlugin } from '@payloadcms/plugin-cloud-storage'
32
25
 
33
26
  export default buildConfig({
34
27
  plugins: [
35
- cloudStorage({
28
+ cloudStoragePlugin({
36
29
  collections: {
37
30
  'my-collection-slug': {
38
31
  adapter: theAdapterToUse, // see docs for the adapter you want to use
@@ -49,7 +42,7 @@ export default buildConfig({
49
42
  The proper way to conditionally enable/disable this plugin is to use the `enabled` property.
50
43
 
51
44
  ```ts
52
- cloudStorage({
45
+ cloudStoragePlugin({
53
46
  enabled: process.env.MY_CONDITION === 'true',
54
47
  collections: {
55
48
  'my-collection-slug': {
@@ -105,14 +98,6 @@ Instead, all uploads will still be reached from the default `/collectionSlug/sta
105
98
 
106
99
  If this does not apply to you (your upload collection has `read: () => true` or similar) you can disable this functionality by setting `disablePayloadAccessControl` to `true`. When this setting is in place, this plugin will update your file URLs to point directly to your cloud host.
107
100
 
108
- ## Local development
109
-
110
- For instructions regarding how to develop with this plugin locally, [click here](https://github.com/payloadcms/plugin-cloud-storage/blob/master/docs/local-dev.md).
111
-
112
- ## Questions
113
-
114
- Please contact [Payload](mailto:dev@payloadcms.com) with any questions about using this plugin.
115
-
116
101
  ## Credit
117
102
 
118
103
  This plugin was created with significant help, and code, from [Alex Bechmann](https://github.com/alexbechmann) and [Richard VanBergen](https://github.com/richardvanbergen). Thank you!!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/plugin-cloud-storage",
3
- "version": "3.0.0-beta.30",
3
+ "version": "3.0.0-beta.32",
4
4
  "description": "The official cloud storage plugin for Payload CMS",
5
5
  "homepage": "https://payloadcms.com",
6
6
  "repository": {
@@ -45,7 +45,7 @@
45
45
  "@google-cloud/storage": "^7.7.0",
46
46
  "@types/find-node-modules": "^2.1.2",
47
47
  "@vercel/blob": "^0.22.3",
48
- "payload": "3.0.0-beta.30"
48
+ "payload": "3.0.0-beta.32"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@aws-sdk/client-s3": "^3.525.0",
@@ -54,7 +54,7 @@
54
54
  "@azure/storage-blob": "^12.11.0",
55
55
  "@google-cloud/storage": "^7.7.0",
56
56
  "@vercel/blob": "^0.22.3",
57
- "payload": "3.0.0-beta.30"
57
+ "payload": "3.0.0-beta.32"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "@aws-sdk/client-s3": {