Skip to content

Commit a7cf64e

Browse files
committed
Add note about auxiliary Workers and React Router
1 parent 59a10ce commit a7cf64e

File tree

1 file changed

+9
-5
lines changed
  • src/content/docs/workers/vite-plugin/reference

1 file changed

+9
-5
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,15 @@ It accepts an optional `PluginConfig` parameter.
6363
All requests are routed through your entry Worker.
6464
During the build, each Worker is output to a separate subdirectory of `dist`.
6565

66-
:::note
67-
When running `wrangler deploy`, only your main (entry) Worker will be deployed.
68-
If using multiple Workers, each auxiliary Worker must be deployed individually.
69-
You can inspect the `dist` directory and then run `wrangler deploy -c dist/<auxiliary-worker>/wrangler.json` for each.
70-
:::
66+
:::note
67+
Auxiliary Workers are not currently supported when using [React Router](https://reactrouter.com/) as a framework.
68+
:::
69+
70+
:::note
71+
When running `wrangler deploy`, only your main (entry) Worker will be deployed.
72+
If using multiple Workers, each auxiliary Worker must be deployed individually.
73+
You can inspect the `dist` directory and then run `wrangler deploy -c dist/<auxiliary-worker>/wrangler.json` for each.
74+
:::
7175

7276
## `interface AuxiliaryWorkerConfig`
7377

0 commit comments

Comments
 (0)