From 616da3d369f290ebdf564f1ca4b6f5c072404188 Mon Sep 17 00:00:00 2001 From: Thomas Anders Date: Sun, 4 Aug 2024 16:35:34 +0200 Subject: [PATCH] [DOC] Add additional configuration step for DDEV usage with ddev-viteserve --- Documentation/Installation/Index.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/Installation/Index.rst b/Documentation/Installation/Index.rst index d8f26be..6039af3 100644 --- a/Documentation/Installation/Index.rst +++ b/Documentation/Installation/Index.rst @@ -164,6 +164,14 @@ You have several options to run the dev server: ddev get torenware/ddev-viteserve ddev restart + After installing, you have to tell it where to look for your `vite.config.js`. Open the file `.ddev/.env` and change the `VITE_PROJECT_DIR` to your project-root: + + .. code-block:: sh + + VITE_PROJECT_DIR=. + VITE_PRIMARY_PORT=5173 + VITE_SECONDARY_PORT=5273 + Then you can start the server inside DDEV: .. code-block:: sh