We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b11123 commit 229d00fCopy full SHA for 229d00f
.changeset/thick-dots-sit.md
@@ -1,5 +1,5 @@
1
---
2
-"wrangler": patch
+"wrangler": minor
3
4
5
add support for assets bindings to `getPlatformProxy`
@@ -26,14 +26,12 @@ example:
26
```js
27
import { getPlatformProxy } from "wrangler";
28
29
-const { env } = await getPlatformProxy();
+const { env, dispose } = await getPlatformProxy();
30
31
if (env.ASSETS) {
32
- const text = await (
33
- await p.env.ASSETS.fetch("http://0.0.0.0/file.txt")
34
- ).text();
+ const text = await (await env.ASSETS.fetch("http://0.0.0.0/file.txt")).text();
35
console.log(text); // logs the content of file.txt
36
}
37
38
-p.dispose();
+await dispose();
39
```
0 commit comments