@ampless/runtime 0.2.0-alpha.0 → 0.2.0-alpha.2

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.
@@ -21,14 +21,20 @@ type MiddlewareFn = (request: NextRequest) => NextResponse;
21
21
  */
22
22
  declare function createAmplessMiddleware({ cmsConfig }: CreateMiddlewareOpts): MiddlewareFn;
23
23
  /**
24
- * Default Next.js middleware matcher config. Exposed as a constant so
25
- * templates can re-export it directly:
24
+ * Reference matcher config admin / api / login / static assets /
25
+ * amplify_outputs.json are excluded so middleware doesn't rewrite
26
+ * legitimate non-blog routes into the public site tree.
26
27
  *
27
- * export const config = defaultMatcherConfig
28
+ * **You can't re-export this directly.** Next.js 16's Turbopack
29
+ * requires `export const config` in `proxy.ts` (or `middleware.ts`)
30
+ * to be a statically analysable object literal — referencing an
31
+ * imported variable fails the build with:
32
+ * "Next.js can't recognize the exported `config` field in route.
33
+ * It needs to be a static object."
28
34
  *
29
- * Excludes admin / api / login / static assets / amplify_outputs.json
30
- * without these exclusions middleware would rewrite legitimate
31
- * non-blog routes into the public site tree.
35
+ * So the scaffold inlines the matcher into the user's `proxy.ts`.
36
+ * This export is kept as a reference for documentation and for
37
+ * non-Next.js callers that want to inspect the canonical matcher.
32
38
  */
33
39
  declare const defaultMatcherConfig: {
34
40
  matcher: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/runtime",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.2.0-alpha.2",
4
4
  "description": "Public-side runtime for ampless: post fetching, theme dispatch, middleware, public route handlers",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -46,13 +46,13 @@
46
46
  "@radix-ui/react-slot": "^1.1.1",
47
47
  "class-variance-authority": "^0.7.1",
48
48
  "clsx": "^2.1.1",
49
- "lucide-react": "^0.469.0",
50
- "tailwind-merge": "^2.6.0",
51
- "ampless": "0.2.0-alpha.0",
52
- "@ampless/plugin-og-image": "0.2.0-alpha.0"
49
+ "lucide-react": "^1.16.0",
50
+ "tailwind-merge": "^3.6.0",
51
+ "ampless": "0.2.0-alpha.1",
52
+ "@ampless/plugin-og-image": "0.2.0-alpha.1"
53
53
  },
54
54
  "peerDependencies": {
55
- "next": "^15",
55
+ "next": "^15 || ^16",
56
56
  "react": "^18 || ^19",
57
57
  "react-dom": "^18 || ^19",
58
58
  "aws-amplify": "^6",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/react": "^19.0.0",
63
- "next": "^15.1.0",
63
+ "next": "^16.2.6",
64
64
  "react": "^19.0.0"
65
65
  },
66
66
  "keywords": [