Menu

Sandbox SDK adds file permission control - Vercel
📰
0

Sandbox SDK adds file permission control - Vercel

Vercel News·Luke Phillips-Sheard·4 days ago
#brkw4yxJ
Reading 0:00
15s threshold

Vercel Sandbox SDK 1.9.0 now supports setting file permissions directly when writing files.

By passing a mode property to the writeFiles API, you can define permissions in a single operation.

This eliminates the need for an additional chmod execution round-trip when creating executable scripts or managing access rights inside the sandbox.

sandbox.writeFiles([{

path: 'run.sh',

content: '#!/bin/bash\necho "ready"',

mode: 0o755

}]);

See the documentation to learn more.

Read More