From 04438257b6b97c750c9959444f94daed572e3a30 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 25 Apr 2025 10:20:01 +0100 Subject: [PATCH] Update support of run_worker_first --- .../docs/workers/vite-plugin/reference/static-assets.mdx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/content/docs/workers/vite-plugin/reference/static-assets.mdx b/src/content/docs/workers/vite-plugin/reference/static-assets.mdx index be611c5e121200b..bf0ed936d1e10f4 100644 --- a/src/content/docs/workers/vite-plugin/reference/static-assets.mdx +++ b/src/content/docs/workers/vite-plugin/reference/static-assets.mdx @@ -38,8 +38,6 @@ Custom [headers](/workers/static-assets/headers/) and [redirects](/workers/stati The paths in these files should reflect the structure of your client build output. For example, generated assets are typically located in an [assets subdirectory](https://vite.dev/config/build-options#build-assetsdir). -
+## Run Worker first -:::note -The Cloudflare Vite plugin does not support [run_worker_first](/workers/static-assets/binding/#run_worker_first). -::: +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.