Skip to content

Commit 4bc210d

Browse files
committed
Mention Vite's server.headers in Static Assets page
1 parent fed89dd commit 4bc210d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,5 @@ If you are developing a multi-Worker application, assets can only be accessed on
6666
Custom [headers](/workers/static-assets/headers/) and [redirects](/workers/static-assets/redirects/) are supported at build, preview and deploy time by adding `_headers` and `_redirects` files to your [`public` directory](https://vite.dev/guide/assets#the-public-directory).
6767
The paths in these files should reflect the structure of your client build output.
6868
For example, generated assets are typically located in an [assets subdirectory](https://vite.dev/config/build-options#build-assetsdir).
69+
70+
Vite's [`server.headers`](https://vite.dev/config/server-options#server-headers) can be used to add headers during development.

0 commit comments

Comments
 (0)