-
-
Notifications
You must be signed in to change notification settings - Fork 341
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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.6
How To Reproduce
We added the following config block to the next.config.js file:
const withPWA = require('next-pwa')({
dest: 'public',
sw: '_next_service-worker.js',
swSrc: 'service-worker.js',
register: true,
skipWaiting: true,
maximumFileSizeToCacheInBytes: 3000000,
disable: process.env.NODE_ENV === 'development',
buildExcludes: ['app-build-manifest.json']
});
- Run
next build - Run
git add public/_next_service-worker.js - Run
next buildagain (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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working