Skip to content

Commit e072c15

Browse files
committed
fixups
1 parent a2178af commit e072c15

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

@@ -1036,7 +1034,7 @@ assets = { directory = "./public", binding = "ASSETS", html_handling = "force-tr
10361034

10371035
## Bundling
10381036

1039-
::: note
1037+
:::note
10401038
Wrangler bundling is not applicable if you're using the [Cloudflare Vite plugin](/workers/local-development/vite/).
10411039
:::
10421040

@@ -1097,7 +1095,9 @@ See https://developers.cloudflare.com/workers/wrangler/bundling/ for more detail
10971095

10981096
## Local development settings
10991097

1100-
Q: is this replaced by vite's server options?
1098+
:::note
1099+
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.
1100+
:::
11011101

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

@@ -1143,8 +1143,7 @@ local_protocol = "http"
11431143
## Module Aliasing
11441144

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

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