@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
|
@@ -80,7 +80,16 @@ export async function buildDeployInferenceContext(
|
|
|
80
80
|
|
|
81
81
|
const imports = extractImports(source);
|
|
82
82
|
const dependencyClasses = classifyImports(imports);
|
|
83
|
-
|
|
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) &&
|