Vercel Sandbox 1.9.0

1.9.0
Minor Changes
  • Add support for setting file permissions (mode) in the writeFiles API. Files can now include an optional mode property to set permissions on the tarball, avoiding the need for a separate chmod command. (#90)

    await sandbox.writeFiles([
      {
        path: "/usr/local/bin/myscript",
        content: Buffer.from("#!/bin/bash\necho hello"),
        mode: 0o755,
      },
    ]);
    
View original

Upgraded? How did it go?

Discussion