Skip to content

Commit 0443825

Browse files
Update support of run_worker_first
1 parent a797d4b commit 0443825

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/content/docs/workers/vite-plugin/reference/static-assets.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ Custom [headers](/workers/static-assets/headers/) and [redirects](/workers/stati
3838
The paths in these files should reflect the structure of your client build output.
3939
For example, generated assets are typically located in an [assets subdirectory](https://vite.dev/config/build-options#build-assetsdir).
4040

41-
<br />
41+
## Run Worker first
4242

43-
:::note
44-
The Cloudflare Vite plugin does not support [run_worker_first](/workers/static-assets/binding/#run_worker_first).
45-
:::
43+
Running the Worker ahead of asset handling [run_worker_first](/workers/static-assets/binding/#run_worker_first) is supported at build, preview and deploy time by adding `"run_worker_first" = true` to your Wrangler config.

0 commit comments

Comments
 (0)