-
Notifications
You must be signed in to change notification settings - Fork 301
Closed
Description
IT's now allowed to use in Deno:
import { Client } from 'npm:minio'
function initR2(c: Context) {
const accountid = '*****'
const access_key_id = '*****'
const access_key_secret = '*****'
const params = {
endPoint: `${accountid}.r2.cloudflarestorage.com`,
region: 'us-east-1',
useSSL: true,
accessKey: access_key_id,
secretKey: access_key_secret,
}
console.log('R2 params', params)
const client = new Client(params)
console.log('R2 client', client)
return client
}
initR2()
And then i get error like that:
e Error: unreachable
at arch (ext:deno_node/_process/process.ts:16:11)
at get arch [as arch] (node:process:275:14)
at new TypedClient (file:///tmp/sb-compile-edge-runtime/node_modules/localhost/minio/7.1.3/dist/esm/internal/client.mjs:98:62)
at new Client (file:///tmp/sb-compile-edge-runtime/node_modules/localhost/minio/7.1.3/dist/esm/minio.mjs:44:8)
Metadata
Metadata
Assignees
Labels
No labels