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