@mandujs/core 0.46.0 → 0.46.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mandujs/core",
3
- "version": "0.46.0",
3
+ "version": "0.46.1",
4
4
  "description": "Mandu Framework Core - Spec, Generator, Guard, Runtime",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -80,7 +80,16 @@ export async function buildDeployInferenceContext(
80
80
 
81
81
  const imports = extractImports(source);
82
82
  const dependencyClasses = classifyImports(imports);
83
- const isDynamic = /\[(\.\.\.)?[^\]]+\]/.test(route.pattern);
83
+ // Mandu's manifest patterns use `:param` / `*` (path-pattern style),
84
+ // not bracket-form. Detect both shapes so the heuristic doesn't
85
+ // misclassify dynamic routes as prerenderable. Examples:
86
+ // "/blog/:slug" → dynamic
87
+ // "/docs/*" → dynamic
88
+ // "/[lang]/blog" → dynamic (legacy / hand-written)
89
+ const isDynamic =
90
+ /\[(\.\.\.)?[^\]]+\]/.test(route.pattern) ||
91
+ /\/:[^/]+/.test(route.pattern) ||
92
+ /\*/.test(route.pattern);
84
93
  const hasGenerateStaticParams =
85
94
  route.kind === "page" &&
86
95
  Array.isArray(route.staticParams) &&