create-ampless 1.0.0-beta.173 → 1.0.0-beta.177

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.
@@ -0,0 +1,6 @@
1
+ import { ampless } from '@/lib/ampless'
2
+ import { createLlmsTxtRouteHandler } from '@ampless/runtime/routes'
3
+
4
+ // Site-wide AI index. Disable with `cms.config.ai.llmsTxt: false`.
5
+ export const dynamic = 'force-dynamic'
6
+ export const GET = createLlmsTxtRouteHandler(ampless)
@@ -0,0 +1,10 @@
1
+ import { ampless } from '@/lib/ampless'
2
+ import { createMarkdownRouteHandler } from '@ampless/runtime/routes'
3
+
4
+ // Markdown projection for published posts (any format). Reached via
5
+ // middleware rewrite from `/<slug>.md` — never directly. The browser
6
+ // URL stays `/<slug>.md`; the `/md/` prefix is an implementation
7
+ // detail (folder names starting with `_` are excluded by the App
8
+ // Router, hence the explicit `md/`).
9
+ export const dynamic = 'force-dynamic'
10
+ export const GET = createMarkdownRouteHandler(ampless)
@@ -14,6 +14,7 @@ export default defineConfig({
14
14
  site: {
15
15
  name: '{{siteName}}',
16
16
  url: 'http://localhost:3000',
17
+ // description: 'One-line description of this site (used by SEO and /llms.txt).',
17
18
  },
18
19
  // Admin UI language. Built-in dictionaries: 'ja', 'en'. Add more by
19
20
  // dropping `locales/<code>.json` and registering it in `lib/i18n.ts`.
@@ -44,6 +45,10 @@ export default defineConfig({
44
45
  // Post revision history. Every post save is snapshotted into the
45
46
  // PostHistory table by the event-dispatcher Lambda.
46
47
  // history: { retentionDays: 0 }, // 0 = keep every revision forever; e.g. 365 to expire after a year
48
+ // AI-readable publishing. `/<slug>.md` serves a markdown projection of
49
+ // each published post and `/llms.txt` serves a site-wide AI index
50
+ // (both default: enabled).
51
+ // ai: { markdownRoutes: false, llmsTxt: { limit: 100 } },
47
52
  // Active plugins. Order doesn't matter; the runtime aggregates metadata
48
53
  // and runs hooks for events each plugin subscribes to.
49
54
  //
@@ -26,21 +26,21 @@
26
26
  "@tiptap/pm": "^3.23.6",
27
27
  "@tiptap/react": "^3.23.6",
28
28
  "@tiptap/starter-kit": "^3.23.6",
29
- "@ampless/plugin-analytics-ga4": "^0.2.0-beta.39",
30
- "@ampless/plugin-cookie-consent": "^0.1.0-beta.30",
31
- "@ampless/plugin-gtm": "^0.2.0-beta.38",
32
- "@ampless/plugin-og-image": "^0.2.0-beta.55",
33
- "@ampless/plugin-plausible": "^0.2.0-beta.38",
34
- "@ampless/plugin-reading-time": "^0.1.0-beta.28",
35
- "@ampless/plugin-rss": "^0.2.0-beta.55",
36
- "@ampless/plugin-schema-jsonld": "^0.1.1-beta.34",
37
- "@ampless/plugin-seo": "^0.2.0-beta.55",
38
- "@ampless/plugin-webhook": "^0.2.0-beta.56",
39
- "@ampless/admin": "^1.0.0-beta.103",
40
- "@ampless/backend": "^1.0.0-beta.85",
41
- "@ampless/runtime": "^1.0.0-beta.68",
29
+ "@ampless/plugin-analytics-ga4": "^0.2.0-beta.41",
30
+ "@ampless/plugin-cookie-consent": "^0.1.0-beta.32",
31
+ "@ampless/plugin-gtm": "^0.2.0-beta.40",
32
+ "@ampless/plugin-og-image": "^0.2.0-beta.57",
33
+ "@ampless/plugin-plausible": "^0.2.0-beta.40",
34
+ "@ampless/plugin-reading-time": "^0.1.0-beta.30",
35
+ "@ampless/plugin-rss": "^0.2.0-beta.57",
36
+ "@ampless/plugin-schema-jsonld": "^0.1.1-beta.36",
37
+ "@ampless/plugin-seo": "^0.2.0-beta.57",
38
+ "@ampless/plugin-webhook": "^0.2.0-beta.58",
39
+ "@ampless/admin": "^1.0.0-beta.105",
40
+ "@ampless/backend": "^1.0.0-beta.87",
41
+ "@ampless/runtime": "^1.0.0-beta.70",
42
42
  "@digital-go-jp/tailwind-theme-plugin": "^0.3.4",
43
- "ampless": "^1.0.0-beta.55",
43
+ "ampless": "^1.0.0-beta.57",
44
44
  "aws-amplify": "^6.17.0",
45
45
  "class-variance-authority": "^0.7.1",
46
46
  "clsx": "^2.1.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ampless",
3
- "version": "1.0.0-beta.173",
3
+ "version": "1.0.0-beta.177",
4
4
  "description": "Create a new ampless project",
5
5
  "license": "MIT",
6
6
  "type": "module",