Skip to content

Commit

Permalink
[DOC] Add additional configuration step for DDEV usage with ddev-vite…
Browse files Browse the repository at this point in the history
…serve
  • Loading branch information
Thomas Anders authored and s2b committed Aug 4, 2024
1 parent b3173cb commit 616da3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Documentation/Installation/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 616da3d

Please sign in to comment.