diff --git a/adev/shared-docs/utils/zip.utils.ts b/adev/shared-docs/utils/zip.utils.ts index ee005aa21e2..54da4f76ec1 100644 --- a/adev/shared-docs/utils/zip.utils.ts +++ b/adev/shared-docs/utils/zip.utils.ts @@ -14,6 +14,9 @@ import {zip, strToU8} from 'fflate'; export async function generateZip(files: FileAndContent[]): Promise { const filesObj: Record = {}; files.forEach(({path, content}) => { + if (path.startsWith('/')) { + path = path.slice(1); + } filesObj[path] = typeof content === 'string' ? strToU8(content) : content; });