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
* feat: add gcs driver to project
* ci: convert to base64
* ci: create new step to create the gcs file
* ci: fix run command step Create GCS Credential
* ci: fix run command step Create GCS Credential
* ci: fix run command step Create GCS Credential
* test: adjust build storage test, add gcs to array
* test: remove some tests from gcs to not break the rate limit
* test: remove some tests from gcs to not break the rate limit
> Be careful with **addConfig**, **removeConfig** and **resetConfig** because they create a new instance
196
+
> of the default driver you are using, if you want to subscribe some config and use a different disk,
197
+
> use this methods first, example:
198
+
199
+
```ts
200
+
proccess.env.FILESYSTEM_DISK='local'
201
+
202
+
// BAD!!!!!
203
+
// This will create the file using local disk
204
+
storage
205
+
.disk('s3')
206
+
.addConfig('bucket', 'test-bucket')
207
+
.put('file.txt', Buffer.from('Hello World'))
208
+
209
+
// GOOD!!!!!
210
+
// This will create the file using s3 disk
211
+
storage
212
+
.addConfig('bucket', 'test-bucket')
213
+
.disk('s3')
214
+
.put('file.txt', Buffer.from('Hello World'))
215
+
```
216
+
188
217
### Extending disks and drivers
189
218
190
219
> Nowadays, @secjs/storage has only LocalDriver and S3Driver support, but you can extend the drivers for Storage class if you implement DriverContract interface
0 commit comments