@ampless/backend 1.0.0-alpha.25 → 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.
Files changed (2) hide show
  1. package/dist/index.js +9 -7
  2. package/package.json +3 -3
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 per-site
143
- // JSON the public site reads. Without this entry the
144
- // `site.settings.updated` handler S3 PutObject call fails
145
- // silently (CloudWatch shows AccessDenied; the public site never
146
- // sees theme.active overrides because the cache file never
147
- // appears).
148
- `${backend.storage.resources.bucket.bucketArn}/public/site-settings/*`
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/backend",
3
- "version": "1.0.0-alpha.25",
3
+ "version": "1.0.0-alpha.27",
4
4
  "description": "Amplify Gen 2 backend factories for ampless: auth, data, storage, event processors, API key renewer",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -65,8 +65,8 @@
65
65
  "@smithy/protocol-http": "^5.4.4",
66
66
  "@smithy/signature-v4": "^5.4.4",
67
67
  "fflate": "^0.8.3",
68
- "ampless": "1.0.0-alpha.13",
69
- "@ampless/mcp-server": "1.0.0-alpha.15"
68
+ "ampless": "1.0.0-alpha.14",
69
+ "@ampless/mcp-server": "1.0.0-alpha.16"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@aws-amplify/backend": "^1",