Skip to content

Commit c3b8210

Browse files
committed
Correct positions of highlighted code
1 parent 941ffec commit c3b8210

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/content/docs/workers/vite-plugin/reference/api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: Vite plugin API
1010

1111
The `cloudflare` plugin should be included in the Vite `plugins` array:
1212

13-
```ts {4, 7} title="vite.config.ts"
13+
```ts {2, 5} title="vite.config.ts"
1414
import { defineConfig } from "vite";
1515
import { cloudflare } from "@cloudflare/vite-plugin";
1616

src/content/docs/workers/vite-plugin/reference/cloudflare-environments.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ vars = { MY_VAR = "Production var" }
3232

3333
If you run `CLOUDFLARE_ENV=production vite build` then the output `wrangler.json` file generated by the build will be a flattened configuration for the 'production' Cloudflare environment, as shown in the following example:
3434

35-
```json
35+
```json title=wrangler.json
3636
{
3737
"name": "my-worker",
3838
"compatibility_date": "2025-04-03",

src/content/docs/workers/vite-plugin/tutorial.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Next, open the `cloudflare-vite-tutorial` directory in your editor of choice.
4242

4343
### Add the plugin to your Vite config
4444

45-
```ts {5, 8} title="vite.config.ts"
45+
```ts {3, 6} title="vite.config.ts"
4646
import { defineConfig } from "vite";
4747
import react from "@vitejs/plugin-react";
4848
import { cloudflare } from "@cloudflare/vite-plugin";
@@ -118,7 +118,7 @@ This tutorial, however, will show you how to go a step further and add an API Wo
118118
}
119119
```
120120

121-
```jsonc {8} title="tsconfig.json"
121+
```jsonc {6} title="tsconfig.json"
122122
{
123123
"files": [],
124124
"references": [
@@ -178,7 +178,7 @@ If this is present and the URL does not match a static asset, the `not_found_han
178178

179179
Edit `src/App.tsx` so that it includes an additional button that calls the API and sets some state:
180180

181-
```tsx {10, 34-48} collapse={14-29} title="src/App.tsx"
181+
```tsx {8, 32-46} collapse={12-27} title="src/App.tsx"
182182
import { useState } from "react";
183183
import reactLogo from "./assets/react.svg";
184184
import viteLogo from "/vite.svg";

0 commit comments

Comments
 (0)