Skip to content

Commit 4717e35

Browse files
committed
fixups
1 parent 49912da commit 4717e35

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

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

10341032
## Bundling
10351033

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

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

10951093
## Local development settings
10961094

1097-
Q: is this replaced by vite's server options?
1095+
:::note
1096+
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.
1097+
:::
10981098

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

@@ -1140,8 +1140,7 @@ local_protocol = "http"
11401140
## Module Aliasing
11411141

11421142
:::note
1143-
If you're using the [Cloudflare Vite plugin](/workers/local-development/vite/), `alias` is replaced Vite's `resolve.alias` - refer to the [Vite
1144-
documentation](https://vite.dev/config/shared-options.html#resolve-alias).
1143+
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).
11451144
:::
11461145

11471146
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)