Closed kamtschatka closed 2 weeks ago
I didn't like the "find and replace" approach here to be honest. I found a way to let vite inline some variables during build, so used that instead here: https://github.com/hoarder-app/hoarder/commit/f7a77533240ec435c8a7b103b6f6be409bf995d8
TIL
added a build step after vite, to replace the fallback 0.0.0 value with the version from the package.json