create-ampless 1.0.0-alpha.117 → 1.0.0-alpha.119
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.
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
// Re-exported from @ampless/backend so the package can ship Lambda
|
|
2
2
|
// handler updates via `npm update`. Amplify's esbuild follows this
|
|
3
3
|
// import and bundles the real handler into the Lambda artifact.
|
|
4
|
-
|
|
4
|
+
//
|
|
5
|
+
// The dispatcher now also captures per-post revision history. The
|
|
6
|
+
// retention window comes from the user-side `cms.config` — the package
|
|
7
|
+
// handler never imports `cms.config` directly (it can't know the project
|
|
8
|
+
// layout), so this thin shell wires the value in via the factory.
|
|
9
|
+
import { createDispatcherHandler } from '@ampless/backend/events/dispatcher'
|
|
10
|
+
import config from '../../../cms.config'
|
|
11
|
+
|
|
12
|
+
export const handler = createDispatcherHandler({
|
|
13
|
+
historyRetentionDays: config.history?.retentionDays ?? 0,
|
|
14
|
+
})
|
|
@@ -41,6 +41,9 @@ export default defineConfig({
|
|
|
41
41
|
// IANA timezone used for date rendering. Pin this so SSR and CSR
|
|
42
42
|
// always produce the same string. Examples: 'Asia/Tokyo', 'America/New_York'.
|
|
43
43
|
timezone: 'UTC',
|
|
44
|
+
// Post revision history. Every post save is snapshotted into the
|
|
45
|
+
// PostHistory table by the event-dispatcher Lambda.
|
|
46
|
+
// history: { retentionDays: 0 }, // 0 = keep every revision forever; e.g. 365 to expire after a year
|
|
44
47
|
// Active plugins. Order doesn't matter; the runtime aggregates metadata
|
|
45
48
|
// and runs hooks for events each plugin subscribes to.
|
|
46
49
|
//
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
"@tiptap/pm": "^3.23.6",
|
|
26
26
|
"@tiptap/react": "^3.23.6",
|
|
27
27
|
"@tiptap/starter-kit": "^3.23.6",
|
|
28
|
-
"@ampless/plugin-analytics-ga4": "^0.2.0-alpha.
|
|
29
|
-
"@ampless/plugin-cookie-consent": "^0.1.0-alpha.
|
|
30
|
-
"@ampless/plugin-gtm": "^0.2.0-alpha.
|
|
31
|
-
"@ampless/plugin-og-image": "^0.2.0-alpha.
|
|
32
|
-
"@ampless/plugin-plausible": "^0.2.0-alpha.
|
|
33
|
-
"@ampless/plugin-reading-time": "^0.1.0-alpha.
|
|
34
|
-
"@ampless/plugin-rss": "^0.2.0-alpha.
|
|
35
|
-
"@ampless/plugin-schema-jsonld": "^0.1.1-alpha.
|
|
36
|
-
"@ampless/plugin-seo": "^0.2.0-alpha.
|
|
37
|
-
"@ampless/plugin-webhook": "^0.2.0-alpha.
|
|
38
|
-
"@ampless/admin": "^1.0.0-alpha.
|
|
39
|
-
"@ampless/backend": "^1.0.0-alpha.
|
|
40
|
-
"@ampless/runtime": "^1.0.0-alpha.
|
|
28
|
+
"@ampless/plugin-analytics-ga4": "^0.2.0-alpha.22",
|
|
29
|
+
"@ampless/plugin-cookie-consent": "^0.1.0-alpha.13",
|
|
30
|
+
"@ampless/plugin-gtm": "^0.2.0-alpha.21",
|
|
31
|
+
"@ampless/plugin-og-image": "^0.2.0-alpha.38",
|
|
32
|
+
"@ampless/plugin-plausible": "^0.2.0-alpha.21",
|
|
33
|
+
"@ampless/plugin-reading-time": "^0.1.0-alpha.11",
|
|
34
|
+
"@ampless/plugin-rss": "^0.2.0-alpha.38",
|
|
35
|
+
"@ampless/plugin-schema-jsonld": "^0.1.1-alpha.17",
|
|
36
|
+
"@ampless/plugin-seo": "^0.2.0-alpha.38",
|
|
37
|
+
"@ampless/plugin-webhook": "^0.2.0-alpha.39",
|
|
38
|
+
"@ampless/admin": "^1.0.0-alpha.71",
|
|
39
|
+
"@ampless/backend": "^1.0.0-alpha.60",
|
|
40
|
+
"@ampless/runtime": "^1.0.0-alpha.47",
|
|
41
41
|
"@digital-go-jp/tailwind-theme-plugin": "^0.3.4",
|
|
42
|
-
"ampless": "^1.0.0-alpha.
|
|
42
|
+
"ampless": "^1.0.0-alpha.38",
|
|
43
43
|
"aws-amplify": "^6.17.0",
|
|
44
44
|
"class-variance-authority": "^0.7.1",
|
|
45
45
|
"clsx": "^2.1.1",
|