Use Commit Hash as hash value for `.next` and build Cache (#6274)
Use Commit Hash as hash value for `.next` and build Cache (#6274)

* feat: use commit hash as sha value for next cache

* feat: cache the whole .next directory

* fix: add back the cache restore keys

* demo commit: to see the hashFiles method

* fix: add commit hash instead of the folder hash

* feat: make sure to cache the .next folder and then the .next/cache
OpenCollective/opencollective-api,OpenCollective/opencollective-api,OpenCollective/opencollective-api