logoalt Hacker News

larsnystromyesterday at 7:45 PM1 replyview on HN

Maybe I’m just dense, but it says the fs module is fully supported, so what happens when I try to read a file from disk if the app is fully sandboxed?


Replies

syrusakbaryyesterday at 7:51 PM

Only the current working directory will be exposed/mounted to the runtime (we do this to facilitate the DX when running local files without requiring the user to add extra flags).

As a fun exercise, you can try reading process.cwd() from edge in --safe mode and without it.