fix: nested index route not working in prod builds (#3132)

This was due to a mismatch in the disk snapshot compared to in memory.
This commit is contained in:
Marvin Hagemeister
2025-07-24 21:27:16 +02:00
committed by GitHub
parent e9f0a4bb0c
commit 85c17fac72
7 changed files with 69 additions and 28 deletions
+3 -3
View File
@@ -405,10 +405,10 @@ ${
.map((item, i) => {
const id = JSON.stringify(item.id);
const pattern = JSON.stringify(item.pattern);
const type = JSON.stringify(item.type);
const routePattern = JSON.stringify(item.routePattern);
return ` { id: ${id}, mod: fsRoute_${i}, type: ${
JSON.stringify(item.type)
}, pattern: ${pattern} },`;
return ` { id: ${id}, mod: fsRoute_${i}, type: ${type}, pattern: ${pattern}, routePattern: ${routePattern} },`;
})
.join("\n")
}