This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { z } from 'zod'; | |
import { ZipWriter, BlobReader, configure } from '@zip.js/zip.js'; | |
// Without this, we get uncaught error due to Workers runtime bug | |
// See: https://github.com/gildas-lormeau/zip.js/discussions/514 | |
configure({ | |
useCompressionStream: false, | |
}); | |
// Payload schema that lists the files to be bundled, their filenames and the archive filename |
OlderNewer