MattGibney / DarkThrone

Lovingly re-creating the DarkThrone experience.
https://darkthronereborn.com
1 stars 0 forks source link

Bake the commit hash has into the built applications. #44

Closed MattGibney closed 4 months ago

MattGibney commented 4 months ago

There are possibly nicer ways to do this. I originally was going to create a build info json file and have the application read that when it executes. However that only works for the API. The web apps need this baked in directly.

I could have achieved this with environment variables, however I'm not a big fan of that approach for this sort of thing.

Considering it's static information as far as the built application goes and it's not something that should ever change, unless we have a new build. I felt that this was the strongest option.