upload-trace: accept gzip and zstd compressed Turbopack traces
`next internal upload-trace` only accepted raw traces. gzip and zstd compressed traces are now validated by decompressing the start of the file and checking the TRACEv1 header, and uploaded unchanged. On Node.js versions without zstd support, zstd files are accepted by their magic bytes.
Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment