Skip to content

Commit c5f644a

Browse files
committed
fixups
1 parent 6a49135 commit c5f644a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/content/docs/workers/wrangler/configuration.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ At a minimum, the `name`, `main` and `compatibility_date` keys are required to d
176176
- `minify` <Type text="boolean" /> <MetaInfo text="optional" />
177177

178178
- Minify the Worker script before uploading.
179-
- If you're using the [Cloudflare Vite plugin](/workers/local-development/vite/), `minify` is replaced by Vite's `build.minify` - refer to the [Vite
180-
documentation](https://vite.dev/config/build-options.html#build-minify).
179+
- If you're using the [Cloudflare Vite plugin](/workers/local-development/vite/), `minify` is replaced by Vite's [`build.minify`](https://vite.dev/config/build-options.html#build-minify).
181180

182181
- `logpush` <Type text="boolean" /> <MetaInfo text="optional" />
183182

@@ -201,8 +200,7 @@ Non-inheritable keys are configurable at the top-level, but cannot be inherited
201200
- `define` <Type text="Record<string, string>" /> <MetaInfo text="optional" />
202201

203202
- A map of values to substitute when deploying your Worker.
204-
- If you're using the [Cloudflare Vite plugin](/workers/local-development/vite/), this is replaced by Vite's `define` - refer to the [Vite
205-
documentation](https://vite.dev/config/shared-options.html#define).
203+
- If you're using the [Cloudflare Vite plugin](/workers/local-development/vite/), this is replaced by Vite's [`define`](https://vite.dev/config/shared-options.html#define).
206204

207205
- `vars` <Type text="object" /> <MetaInfo text="optional" />
208206

@@ -383,7 +381,7 @@ head_sampling_rate = 0.1 # 10% of requests are logged
383381

384382
## Custom builds
385383

386-
::: note
384+
:::note
387385
Not applicable if you're using the [Cloudflare Vite plugin](/workers/local-development/vite/).
388386
:::
389387

@@ -1031,7 +1029,7 @@ assets = { directory = "./public", binding = "ASSETS", html_handling = "force-tr
10311029

10321030
## Bundling
10331031

1034-
::: note
1032+
:::note
10351033
Wrangler bundling is not applicable if you're using the [Cloudflare Vite plugin](/workers/local-development/vite/).
10361034
:::
10371035

@@ -1092,7 +1090,9 @@ See https://developers.cloudflare.com/workers/wrangler/bundling/ for more detail
10921090

10931091
## Local development settings
10941092

1095-
Q: is this replaced by vite's server options?
1093+
:::note
1094+
If you're using the [Cloudflare Vite plugin](/workers/local-development/vite/), you should use Vite's [server options]](https://vite.dev/config/server-options.html) instead.
1095+
:::
10961096

10971097
You can configure various aspects of local development, such as the local protocol or port.
10981098

@@ -1138,8 +1138,7 @@ local_protocol = "http"
11381138
## Module Aliasing
11391139

11401140
:::note
1141-
If you're using the [Cloudflare Vite plugin](/workers/local-development/vite/), `alias` is replaced Vite's `resolve.alias` - refer to the [Vite
1142-
documentation](https://vite.dev/config/shared-options.html#resolve-alias).
1141+
If you're using the [Cloudflare Vite plugin](/workers/local-development/vite/), `alias` is replaced Vite's [`resolve.alias`](https://vite.dev/config/shared-options.html#resolve-alias).
11431142
:::
11441143

11451144
You can configure Wrangler to replace all calls to import a particular package with a module of your choice, by configuring the `alias` field:

0 commit comments

Comments
 (0)