Skip to content

Commit

Permalink
fix: make build deterministic (closes #1750)
Browse files Browse the repository at this point in the history
  • Loading branch information
uifox authored and brillout committed Jul 16, 2024
1 parent 9521b65 commit 648cd01
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ async function fastGlob(userRootDir: string, outDirRelativeFromUserRootDir: stri
cwd: userRootDir,
dot: false
})
// Make build deterministic, in order to get a stable generated hash for dist/client/assets/entries/entry-client-routing.${hash}.js
// https://github.com/vikejs/vike/pull/1750
files.sort()
return files
}

Expand Down

0 comments on commit 648cd01

Please sign in to comment.