# NextJsAppResource Constructors

- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Type: [NextJsAppResource](/reference/api/csharp/aspire.hosting.javascript/nextjsappresource.md)
- Kind: `Constructors`
- Members: `1`

Represents a Next.js application resource.

## NextJsAppResource(string, string, string)

- Name: `Constructor(string, string, string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/NextJsAppResource.cs#L17)

Represents a Next.js application resource.

```csharp
public class NextJsAppResource
{
    public NextJsAppResource(
        string name,
        string command,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The unique name used to identify the Next.js application resource.
- `command` (`string`)
  The command to execute the application.
- `workingDirectory` (`string`)
  The working directory from which the application command is executed.
