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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user