fix: sort routes for determinism
This commit is contained in:
parent
460c7d61a8
commit
fe65cb863b
|
@ -40,6 +40,7 @@ export async function createRoutesFromFiletree({importer, paths, resolver}) {
|
||||||
.slice(0, -1)
|
.slice(0, -1)
|
||||||
.pop()
|
.pop()
|
||||||
))
|
))
|
||||||
|
.sort((l, r) => (l < r ? -1 : 1))
|
||||||
.forEach((path) => {
|
.forEach((path) => {
|
||||||
let walk = children;
|
let walk = children;
|
||||||
const parts = ['/', ...resolve('/', path).split('/').slice(1)];
|
const parts = ['/', ...resolve('/', path).split('/').slice(1)];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user