@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.
- package/dist/middleware.d.ts +12 -6
- package/package.json +7 -7
package/dist/middleware.d.ts
CHANGED
|
@@ -21,14 +21,20 @@ type MiddlewareFn = (request: NextRequest) => NextResponse;
|
|
|
21
21
|
*/
|
|
22
22
|
declare function createAmplessMiddleware({ cmsConfig }: CreateMiddlewareOpts): MiddlewareFn;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* non-
|
|
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.
|
|
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": "^
|
|
50
|
-
"tailwind-merge": "^
|
|
51
|
-
"ampless": "0.2.0-alpha.
|
|
52
|
-
"@ampless/plugin-og-image": "0.2.0-alpha.
|
|
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": "^
|
|
63
|
+
"next": "^16.2.6",
|
|
64
64
|
"react": "^19.0.0"
|
|
65
65
|
},
|
|
66
66
|
"keywords": [
|