Skip to content

Commit

Permalink
docs: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
boywithkeyboard committed Apr 7, 2023
1 parent c0bb17e commit 9426658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/deno/edge-storage.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Client, { EdgeStorage } from 'https://deno.land/x/[email protected]/mod.ts' // < please use the latest version

const bunny = new Client({ token: Deno.env.get('token') as string })
.use(EdgeStorage)
.use(EdgeStorage) // you could also set the token here, e.g. .use(EdgeStorage({ token: Deno.env.get('token') as string }))

// upload file
const file = await Deno.open('./test/image.png', { read: true })
Expand Down

0 comments on commit 9426658

Please sign in to comment.