diff --git a/src/content/blog/working-with-vite-in-ddev.md b/src/content/blog/working-with-vite-in-ddev.md index 9759c2ae..cd740e13 100644 --- a/src/content/blog/working-with-vite-in-ddev.md +++ b/src/content/blog/working-with-vite-in-ddev.md @@ -476,6 +476,14 @@ export default defineConfig({ The devserver can be started via `ddev npm run dev`. +If you want to run this in the background as a daemon, edit your config.yaml and add the this: +``` +web_extra_daemons: + - name: vite + command: bash -c 'npm install && npm run dev -- --host' + directory: /var/www/html +``` + Example repository: - [mandrasch/ddev-laravel-vite](https://github.com/mandrasch/ddev-laravel-vite)