ddev-viteserve
ddev-viteserve copied to clipboard
Is there a way to set the PROJ_DIR during installation?
When installing ddev-viteserv, the .ddev/.env file is always created with VITE_PROJECT_DIR=frontend. Is it possible to pass an argument or run a command to change this to something else? Thanks!
I don't know if you can set this before installation, but once you've installed the plugin with
ddev get torenware/ddev-viteserve
the main config file for the plugin, .ddev/.env will be set up, and you can edit it. In your case, you want to change VITE_PROJECT_DIR=frontend to VITE_PROJECT_DIR=.. Then do
ddev restart
ddev vite-serve start
and start working.