ddev-viteserve icon indicating copy to clipboard operation
ddev-viteserve copied to clipboard

Is there a way to set the PROJ_DIR during installation?

Open bd-viget opened this issue 2 years ago • 1 comments

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!

bd-viget avatar May 02 '23 20:05 bd-viget

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.

torenware avatar May 03 '23 05:05 torenware