addNextJsApp

Method
📦 Aspire.Hosting.JavaScript v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addNextJsApp(
name: string,
appDirectory: string,
runScriptName?: string): NextJsAppResource;
}

Signature

methodaddNextJsAppbuilder
Adds a Next.js app to the distributed application builder.
addNextJsApp(
name: string,
appDirectory: string,
runScriptName?: string): NextJsAppResource
namestringThe name of the Next.js app.
appDirectorystringThe path to the directory containing the Next.js app.
runScriptNamestringoptional= devThe name of the script that runs the Next.js dev server. Defaults to "dev".
NextJsAppResource

Applies to

This method applies to the following types: