diff --git a/src/content/docs/workers/wrangler/api.mdx b/src/content/docs/workers/wrangler/api.mdx index d097174f06251f6..f566d4c102f001a 100644 --- a/src/content/docs/workers/wrangler/api.mdx +++ b/src/content/docs/workers/wrangler/api.mdx @@ -252,7 +252,7 @@ const platform = await getPlatformProxy(options); The path to the config file to use. - If no path is specified the default behavior is to search from the current directory up the filesystem for a `wrangler.toml` to use. + If no path is specified the default behavior is to search from the current directory up the filesystem for a [Wrangler configuration file](/workers/wrangler/configuration/) to use. **Note:** this field is optional but if a path is specified it must point to a valid file on the filesystem. @@ -295,7 +295,7 @@ const platform = await getPlatformProxy(options); ### Usage -The `getPlatformProxy` function uses bindings found in `wrangler.toml`. For example, if you have an [environment variable](/workers/configuration/environment-variables/#add-environment-variables-via-wrangler) configuration set up in `wrangler.toml`: +The `getPlatformProxy` function uses bindings found in [Wrangler configuration files](/workers/wrangler/configuration/). For example, if you have such an [environment variable](/workers/configuration/environment-variables/#add-environment-variables-via-wrangler) in your configuration: import { WranglerConfig } from "~/components"; @@ -326,7 +326,7 @@ This will print the following output: `MY_VARIABLE = test`. ### Supported bindings -All supported bindings found in your `wrangler.toml` are available to you via `env`. +All supported bindings found in your [Wrangler configuration](/workers/wrangler/configuration/) are available to you via `env`. The bindings supported by `getPlatformProxy` are: @@ -342,8 +342,6 @@ The bindings supported by `getPlatformProxy` are: For example, you might have the following file read by `getPlatformProxy`. - - ```toml @@ -365,6 +363,8 @@ The bindings supported by `getPlatformProxy` are: - [D1 database bindings](/d1/worker-api/) +- [Static Asset bindings](/workers/static-assets/binding/#binding) + - [Hyperdrive bindings](/hyperdrive) :::note[Hyperdrive values are simple passthrough ones]