[solved] How can I get the build hash in my app?

I want to add the build hash into my app so that I can show the version that is running in the browser

I found the EntendedAPIPlugin, but it says that I can not use it with HMR – which is used in the RW dev

I’m hoping that RW already supplies this for me and I just don’t know where to find it


If you build and deploy with Netlify then you have access to build metadata and git related envars:

Three is a unique build id and also the git commit hash that represents the commit used when building.

1 Like