create-ampless 0.2.0-alpha.2 → 0.2.0-alpha.3
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.
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@ampless/plugin-rss": "^0.2.0-alpha.1",
|
|
25
25
|
"@ampless/plugin-seo": "^0.2.0-alpha.1",
|
|
26
26
|
"@ampless/plugin-webhook": "^0.2.0-alpha.1",
|
|
27
|
-
"@ampless/admin": "^0.2.0-alpha.
|
|
27
|
+
"@ampless/admin": "^0.2.0-alpha.2",
|
|
28
28
|
"@ampless/backend": "^0.2.0-alpha.1",
|
|
29
|
-
"@ampless/runtime": "^0.2.0-alpha.
|
|
29
|
+
"@ampless/runtime": "^0.2.0-alpha.2",
|
|
30
30
|
"@digital-go-jp/tailwind-theme-plugin": "^0.3.4",
|
|
31
31
|
"ampless": "^0.2.0-alpha.1",
|
|
32
32
|
"aws-amplify": "^6.10.0",
|
|
@@ -10,7 +10,24 @@
|
|
|
10
10
|
// forwarding, multi-site Cache-Control override.
|
|
11
11
|
|
|
12
12
|
import cmsConfig from './cms.config'
|
|
13
|
-
import { createAmplessMiddleware
|
|
13
|
+
import { createAmplessMiddleware } from '@ampless/runtime/middleware'
|
|
14
14
|
|
|
15
15
|
export const proxy = createAmplessMiddleware({ cmsConfig })
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
// Next.js 16's Turbopack requires `config` to be a statically
|
|
18
|
+
// analysable object literal — referencing an imported variable
|
|
19
|
+
// (e.g. `defaultMatcherConfig` from @ampless/runtime/middleware)
|
|
20
|
+
// causes a build error:
|
|
21
|
+
// "Next.js can't recognize the exported `config` field in route.
|
|
22
|
+
// It needs to be a static object."
|
|
23
|
+
//
|
|
24
|
+
// So we inline the matcher here. If you change it, keep it in sync
|
|
25
|
+
// with `defaultMatcherConfig` documented in @ampless/runtime/middleware.
|
|
26
|
+
// The matcher excludes admin / api / login / static assets /
|
|
27
|
+
// amplify_outputs.json so the public-site proxy doesn't rewrite
|
|
28
|
+
// legitimate non-blog routes.
|
|
29
|
+
export const config = {
|
|
30
|
+
matcher: [
|
|
31
|
+
'/((?!admin|api|login|_next/static|_next/image|favicon\\.ico|amplify_outputs\\.json).*)',
|
|
32
|
+
],
|
|
33
|
+
}
|