diff --git a/docs/config/index.md b/docs/config/index.md index 228caaaa40f8b0..225d8b2f6ae938 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -520,6 +520,12 @@ export default defineConfig(({ command, mode }) => { Configure CORS for the dev server. This is enabled by default and allows any origin. Pass an [options object](https://github.com/expressjs/cors) to fine tune the behavior or `false` to disable. +### server.headers + +- **Type:** `OutgoingHttpHeaders` + + Specify server response headers. + ### server.force - **Type:** `boolean` @@ -603,6 +609,12 @@ async function createServer() { createServer() ``` +### server.base + +- **Type:** `string | undefined` + + Prepend this folder to http requests, for use when proxying vite as a subfolder. Should start and end with the `/` character. + ### server.fs.strict - **Type:** `boolean`