AddViteApp
Method
func (DistributedApplicationBuilder) AddViteApp( name string, appDirectory string, options ...*AddViteAppOptions,) ViteAppResourceSignature
method
AddViteApp builderAdds a Vite app to the distributed application builder.
AddViteApp( name string, appDirectory string, options ...*AddViteAppOptions,) ViteAppResourceParameters
namestringThe name of the Vite app.appDirectory stringThe path to the directory containing the Vite app.options...*AddViteAppOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddViteAppOptions argument.
RunScriptName *stringThe name of the script that runs the Vite app. Defaults to "dev".Returns
ViteAppResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
DistributedApplicationBuilder