create-ampless 1.0.0-alpha.99 → 1.0.0-beta.148

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 (34) hide show
  1. package/README.ja.md +4 -4
  2. package/README.md +4 -4
  3. package/dist/index.js +198 -29
  4. package/dist/templates/_shared/README.ja.md +4 -4
  5. package/dist/templates/_shared/README.md +4 -4
  6. package/dist/templates/_shared/amplify/backend.ts +1 -1
  7. package/dist/templates/_shared/amplify/data/get-published-post.js +13 -1
  8. package/dist/templates/_shared/amplify/data/list-posts-by-tag.js +15 -3
  9. package/dist/templates/_shared/amplify/data/list-published-posts.js +26 -15
  10. package/dist/templates/_shared/amplify/events/dispatcher/handler.ts +11 -1
  11. package/dist/templates/_shared/amplify/secrets/encryption-key.ts +2 -2
  12. package/dist/templates/_shared/app/(admin)/admin/_editor-bootstrap.tsx +13 -0
  13. package/dist/templates/_shared/app/(admin)/admin/layout.tsx +2 -1
  14. package/dist/templates/_shared/app/(admin)/admin/preview/route.tsx +4 -0
  15. package/dist/templates/_shared/cms.config.ts +3 -0
  16. package/dist/templates/_shared/docs/plugin-author-guide.ja.md +841 -31
  17. package/dist/templates/_shared/docs/plugin-author-guide.md +1147 -80
  18. package/dist/templates/_shared/package.json +17 -16
  19. package/dist/templates/_shared/plugins/README.ja.md +1 -1
  20. package/dist/templates/_shared/plugins/README.md +1 -1
  21. package/dist/templates/blog/pages/home.tsx +5 -5
  22. package/dist/templates/blog/pages/post.tsx +5 -3
  23. package/dist/templates/corporate/pages/home.tsx +5 -5
  24. package/dist/templates/corporate/pages/post.tsx +5 -3
  25. package/dist/templates/dads/pages/home.tsx +5 -5
  26. package/dist/templates/dads/pages/post.tsx +5 -3
  27. package/dist/templates/docs/pages/post.tsx +5 -3
  28. package/dist/templates/landing/pages/home.tsx +5 -5
  29. package/dist/templates/landing/pages/post.tsx +5 -3
  30. package/dist/templates/minimal/pages/post.tsx +5 -3
  31. package/dist/templates/plugin-local/README.md +1 -1
  32. package/dist/templates/plugin-standalone/README.ja.md +3 -3
  33. package/dist/templates/plugin-standalone/README.md +3 -3
  34. package/package.json +1 -1
@@ -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
  //