diff --git a/docs/config/index.md b/docs/config/index.md index 212e0439dd2b5f..1c61f2bef5b7ac 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -477,7 +477,7 @@ export default defineConfig(({ command, mode }) => { ### server.port - **Type:** `number` -- **Default:** `3000` +- **Default:** `5173` Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. @@ -551,7 +551,7 @@ export default defineConfig(({ command, mode }) => { }, // Proxying websockets or socket.io '/socket.io': { - target: 'ws://localhost:3000', + target: 'ws://localhost:5173', ws: true } } diff --git a/docs/guide/api-plugin.md b/docs/guide/api-plugin.md index 76b9984a069828..735a30d3266909 100644 --- a/docs/guide/api-plugin.md +++ b/docs/guide/api-plugin.md @@ -11,7 +11,7 @@ Vite strives to offer established patterns out of the box, so before creating a When creating a plugin, you can inline it in your `vite.config.js`. There is no need to create a new package for it. Once you see that a plugin was useful in your projects, consider sharing it to help others [in the ecosystem](https://chat.vitejs.dev). ::: tip -When learning, debugging, or authoring plugins we suggest including [vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect) in your project. It allows you to inspect the intermediate state of Vite plugins. After installing, you can visit `localhost:3000/__inspect/` to inspect the modules and transformation stack of your project. Check out install instructions in the [vite-plugin-inspect docs](https://github.com/antfu/vite-plugin-inspect). +When learning, debugging, or authoring plugins we suggest including [vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect) in your project. It allows you to inspect the intermediate state of Vite plugins. After installing, you can visit `localhost:5173/__inspect/` to inspect the modules and transformation stack of your project. Check out install instructions in the [vite-plugin-inspect docs](https://github.com/antfu/vite-plugin-inspect). ![vite-plugin-inspect](/images/vite-plugin-inspect.png) ::: diff --git a/docs/guide/backend-integration.md b/docs/guide/backend-integration.md index 17387bb7819ec0..06f2941c1015a2 100644 --- a/docs/guide/backend-integration.md +++ b/docs/guide/backend-integration.md @@ -29,11 +29,11 @@ If you need a custom integration, you can follow the steps in this guide to conf import 'vite/modulepreload-polyfill' ``` -2. For development, inject the following in your server's HTML template (substitute `http://localhost:3000` with the local URL Vite is running at): +2. For development, inject the following in your server's HTML template (substitute `http://localhost:5173` with the local URL Vite is running at): ```html - + ``` In order to properly serve assets, you have two options: @@ -47,7 +47,7 @@ If you need a custom integration, you can follow the steps in this guide to conf ```html