You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 16, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,6 @@ import { s3Adapter } from '@payloadcms/plugin-cloud-storage/s3';
93
93
94
94
constadapter=s3Adapter({
95
95
config: {
96
-
endpoint:process.env.S3_ENDPOINT,
97
96
credentials: {
98
97
accessKeyId:process.env.S3_ACCESS_KEY_ID,
99
98
secretAccessKey:process.env.S3_SECRET_ACCESS_KEY,
@@ -105,6 +104,22 @@ const adapter = s3Adapter({
105
104
// Now you can pass this adapter to the plugin
106
105
```
107
106
107
+
#### Other S3-Compatible Storage
108
+
109
+
If you're running an S3-compatible object storage such as MinIO or Digital Ocean Spaces, you'll have to set the `endpoint` appropriately for the provider.
endpoint:process.env.S3_ENDPOINT, // Configure for your provider
117
+
// ...
118
+
},
119
+
// ...
120
+
})
121
+
```
122
+
108
123
### GCS Adapter
109
124
110
125
To use the GCS adapter, you need to have `@google-cloud/storage` installed in your project dependencies. To do so, run `yarn add @google-cloud/storage`.
0 commit comments