create-ampless 1.0.0-beta.173 → 1.0.0-beta.175
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,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)
|
|
@@ -44,6 +44,9 @@ export default defineConfig({
|
|
|
44
44
|
// Post revision history. Every post save is snapshotted into the
|
|
45
45
|
// PostHistory table by the event-dispatcher Lambda.
|
|
46
46
|
// history: { retentionDays: 0 }, // 0 = keep every revision forever; e.g. 365 to expire after a year
|
|
47
|
+
// AI-readable publishing. `/<slug>.md` serves a markdown projection of
|
|
48
|
+
// each published post (default: enabled).
|
|
49
|
+
// ai: { markdownRoutes: false }, // disable the /<slug>.md route
|
|
47
50
|
// Active plugins. Order doesn't matter; the runtime aggregates metadata
|
|
48
51
|
// and runs hooks for events each plugin subscribes to.
|
|
49
52
|
//
|
|
@@ -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.
|
|
30
|
-
"@ampless/plugin-cookie-consent": "^0.1.0-beta.
|
|
31
|
-
"@ampless/plugin-gtm": "^0.2.0-beta.
|
|
32
|
-
"@ampless/plugin-og-image": "^0.2.0-beta.
|
|
33
|
-
"@ampless/plugin-plausible": "^0.2.0-beta.
|
|
34
|
-
"@ampless/plugin-reading-time": "^0.1.0-beta.
|
|
35
|
-
"@ampless/plugin-rss": "^0.2.0-beta.
|
|
36
|
-
"@ampless/plugin-schema-jsonld": "^0.1.1-beta.
|
|
37
|
-
"@ampless/plugin-seo": "^0.2.0-beta.
|
|
38
|
-
"@ampless/plugin-webhook": "^0.2.0-beta.
|
|
39
|
-
"@ampless/admin": "^1.0.0-beta.
|
|
40
|
-
"@ampless/backend": "^1.0.0-beta.
|
|
41
|
-
"@ampless/runtime": "^1.0.0-beta.
|
|
29
|
+
"@ampless/plugin-analytics-ga4": "^0.2.0-beta.40",
|
|
30
|
+
"@ampless/plugin-cookie-consent": "^0.1.0-beta.31",
|
|
31
|
+
"@ampless/plugin-gtm": "^0.2.0-beta.39",
|
|
32
|
+
"@ampless/plugin-og-image": "^0.2.0-beta.56",
|
|
33
|
+
"@ampless/plugin-plausible": "^0.2.0-beta.39",
|
|
34
|
+
"@ampless/plugin-reading-time": "^0.1.0-beta.29",
|
|
35
|
+
"@ampless/plugin-rss": "^0.2.0-beta.56",
|
|
36
|
+
"@ampless/plugin-schema-jsonld": "^0.1.1-beta.35",
|
|
37
|
+
"@ampless/plugin-seo": "^0.2.0-beta.56",
|
|
38
|
+
"@ampless/plugin-webhook": "^0.2.0-beta.57",
|
|
39
|
+
"@ampless/admin": "^1.0.0-beta.104",
|
|
40
|
+
"@ampless/backend": "^1.0.0-beta.86",
|
|
41
|
+
"@ampless/runtime": "^1.0.0-beta.69",
|
|
42
42
|
"@digital-go-jp/tailwind-theme-plugin": "^0.3.4",
|
|
43
|
-
"ampless": "^1.0.0-beta.
|
|
43
|
+
"ampless": "^1.0.0-beta.56",
|
|
44
44
|
"aws-amplify": "^6.17.0",
|
|
45
45
|
"class-variance-authority": "^0.7.1",
|
|
46
46
|
"clsx": "^2.1.1",
|