@aphexcms/storage-s3 16.0.0 → 16.0.1
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.
- package/README.md +6 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -19,11 +19,11 @@ import { s3Storage } from '@aphexcms/storage-s3';
|
|
|
19
19
|
import { env } from '$env/dynamic/private';
|
|
20
20
|
|
|
21
21
|
export const storageAdapter = s3Storage({
|
|
22
|
-
bucket: env.
|
|
23
|
-
endpoint: env.
|
|
24
|
-
accessKeyId: env.
|
|
25
|
-
secretAccessKey: env.
|
|
26
|
-
publicUrl: env.
|
|
22
|
+
bucket: env.S3_BUCKET,
|
|
23
|
+
endpoint: env.S3_ENDPOINT,
|
|
24
|
+
accessKeyId: env.S3_ACCESS_KEY_ID,
|
|
25
|
+
secretAccessKey: env.S3_SECRET_ACCESS_KEY,
|
|
26
|
+
publicUrl: env.S3_PUBLIC_URL
|
|
27
27
|
}).adapter;
|
|
28
28
|
```
|
|
29
29
|
|
|
@@ -39,7 +39,7 @@ export default createCMSConfig({
|
|
|
39
39
|
|
|
40
40
|
## What `publicUrl` is for
|
|
41
41
|
|
|
42
|
-
Assets are addressed through your app by default, which means every image is proxied through a function invocation. `publicUrl` (or `
|
|
42
|
+
Assets are addressed through your app by default, which means every image is proxied through a function invocation. `publicUrl` (or `S3_CDN_URL` for a custom domain) points asset URLs straight at the bucket instead, so the bytes never touch your server.
|
|
43
43
|
|
|
44
44
|
Keep it unset if the bucket is private and you want every read to go through Aphex's access control.
|
|
45
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aphexcms/storage-s3",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.1",
|
|
4
4
|
"description": "S3-compatible storage adapter for Aphex CMS (AWS S3, Cloudflare R2, MinIO, etc.)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"s3mini": "^1.0.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@aphexcms/cms-core": "^11.
|
|
32
|
+
"@aphexcms/cms-core": "^11.1.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"tsup": "^8.5.1",
|
|
36
36
|
"typescript": "^5.9.3",
|
|
37
|
-
"@aphexcms/cms-core": "^11.
|
|
37
|
+
"@aphexcms/cms-core": "^11.1.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsc",
|