@@ -244,6 +244,18 @@ const ProjectsManagerModal = {
244244 class="block w-full rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 outline-none border"
245245 :class="[$styles.bgInput, $styles.textInput, $styles.borderInput]" />
246246 </div>
247+
248+ <!-- Publish Build Directory -->
249+ <div>
250+ <label class="block text-sm font-medium mb-1" :class="[$styles.labelInput]">Publish Build Directory</label>
251+ <input type="text" v-model="editForm.publish"
252+ placeholder="Path to folder, e.g. dist or $WORKSPACE/dist"
253+ class="block w-full rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 outline-none border font-mono"
254+ :class="[$styles.bgInput, $styles.textInput, $styles.borderInput]" />
255+ <span class="text-[10px] text-gray-400 dark:text-gray-500 mt-1 block">
256+ Default directory to publish (e.g. dist, build, or $WORKSPACE/dist)
257+ </span>
258+ </div>
247259
248260 <!-- Paths -->
249261 <div>
@@ -343,7 +355,8 @@ const ProjectsManagerModal = {
343355 const editForm = ref ( {
344356 name : '' ,
345357 description : '' ,
346- paths : [ ]
358+ paths : [ ] ,
359+ publish : ''
347360 } )
348361
349362 const customPaths = ref ( [ ] )
@@ -381,7 +394,8 @@ const ProjectsManagerModal = {
381394 editForm . value = {
382395 name : proj . name ,
383396 description : proj . description || '' ,
384- paths : [ ...( proj . paths || [ ] ) ]
397+ paths : [ ...( proj . paths || [ ] ) ] ,
398+ publish : proj . publish || ''
385399 }
386400 customPaths . value = ( proj . paths || [ ] ) . filter ( p => p !== '$WORKSPACE' && p !== '$TEMP' )
387401 }
@@ -392,7 +406,8 @@ const ProjectsManagerModal = {
392406 editForm . value = {
393407 name : '' ,
394408 description : '' ,
395- paths : [ ]
409+ paths : [ ] ,
410+ publish : ''
396411 }
397412 customPaths . value = [ ]
398413 }
@@ -443,7 +458,8 @@ const ProjectsManagerModal = {
443458 const updatedProject = {
444459 name : editForm . value . name . trim ( ) ,
445460 description : editForm . value . description . trim ( ) ,
446- paths : finalPaths
461+ paths : finalPaths ,
462+ publish : editForm . value . publish ? editForm . value . publish . trim ( ) : ''
447463 }
448464
449465 // Check duplicate project name
0 commit comments