This works fine for me in a Worker:
This works fine for me in a Worker: What exactly are you running?
7 Replies
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Firstly, are you using a framework that populates
process.env
for you? Since it isn't available globally by defaultUnknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Ok, I think I see it... Nitro does some lifting to add node-compatibility to the code you write(even if you deploy to non-Node environments, like Workers/Pages). The trouble is, it is doing just enough that the S3 SDK thinks it is running in Node, then it relies on packages that only exist on Node.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Disable some of their polyfills, if possible? Otherwise, maybe a framework that doesn't do as much lifting?
You could also try reporting the issue to the Nitro Developers?
I don't have experience with the internals of Nitro, so maybe they might know more about how to get it working
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View