Bundles checksum should remain the same when the handler did not change
ehmicky opened this issue · 3 comments
ehmicky commented
It seems like the bundle's checksum changes even when the Edge handler source code is not changing.
We should provide with consistent checksums instead, as it might help with caching them at some point in the future.
shortdiv commented
Good point, can we generate a hash from the file contents similar to how webpack does it with output files?
ehmicky commented
How would this look?
Note: at the moment, we are making a SHA1 digest of the bundle's content.
netlify-plugin-edge-handlers/src/index.js
Lines 125 to 132 in a9f8b0b