A client app team working on a Nextjs app recently added the next-pwa toolchain, and what we are noticing is that even if all inputs (i.e. dependencies and source files) have not changed, the output file is not reproducible -- it keeps changing every build, which is breaking our build caching.
Versions
next-pwa: 5.6.0
next: 13.5.6
How To Reproduce
We added the following config block to the next.config.js file:
Run next build again (no other files in repo have been modified)
EXPECTED: git status contains no diffs, output file is identical to previous one
ACTUAL: git status contains diffs, a very big compressed line has changed in the service worker output
Summary
A client app team working on a Nextjs app recently added the next-pwa toolchain, and what we are noticing is that even if all inputs (i.e. dependencies and source files) have not changed, the output file is not reproducible -- it keeps changing every build, which is breaking our build caching.
Versions
next-pwa
: 5.6.0next
: 13.5.6How To Reproduce
We added the following config block to the
next.config.js
file:next build
git add public/_next_service-worker.js
next build
again (no other files in repo have been modified)EXPECTED:
git status
contains no diffs, output file is identical to previous one ACTUAL:git status
contains diffs, a very big compressed line has changed in the service worker output