@ampless/backend 1.0.0-alpha.26 → 1.0.0-alpha.27
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/dist/index.js +9 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -139,13 +139,15 @@ function defineAmplessBackend(opts) {
|
|
|
139
139
|
actions: ["s3:PutObject", "s3:DeleteObject"],
|
|
140
140
|
resources: [
|
|
141
141
|
`${backend.storage.resources.bucket.bucketArn}/public/plugins/*`,
|
|
142
|
-
// Built-in cache: rebuildSiteSettingsCache writes the
|
|
143
|
-
// JSON the public site reads.
|
|
144
|
-
// `site
|
|
145
|
-
//
|
|
146
|
-
//
|
|
147
|
-
//
|
|
148
|
-
|
|
142
|
+
// Built-in cache: rebuildSiteSettingsCache writes the single
|
|
143
|
+
// JSON file the public site reads. Exact-match resource —
|
|
144
|
+
// historically this was `public/site-settings/<siteId>.json`
|
|
145
|
+
// (multi-site era) and the wildcard pattern that worked then
|
|
146
|
+
// (`public/site-settings/*`) does NOT match the current
|
|
147
|
+
// single-file key `public/site-settings.json`. Wrong pattern
|
|
148
|
+
// fails the PutObject silently with AccessDenied, so the
|
|
149
|
+
// public site never sees admin-side theme / settings changes.
|
|
150
|
+
`${backend.storage.resources.bucket.bucketArn}/public/site-settings.json`
|
|
149
151
|
]
|
|
150
152
|
})
|
|
151
153
|
);
|
package/package.json
CHANGED