# NextJsAppResource.DisableBuildValidation

- Module: [Aspire.Hosting.JavaScript](/reference/api/go/aspire.hosting.javascript.md)
- Defined on: [NextJsAppResource](/reference/api/go/aspire.hosting.javascript/nextjsappresource.md)
- Version: `17.0.0`
- Kind: `method`

Disables deploy-time build validation checks for the Next.js application.

## Remarks

By default, `AddNextJsApp` adds publish prerequisite steps that verify
the Next.js configuration (e.g. that `output: "standalone"` is set). Use this method
to suppress those checks when the configuration is set dynamically or via an external
mechanism that cannot be detected by static file inspection.

## Definition

```go
type NextJsAppResource interface {
    // ... omitted for brevity
    DisableBuildValidation() NextJsAppResource
}
```

## Signature

```go
DisableBuildValidation() NextJsAppResource
```

## Returns

[`NextJsAppResource`](/reference/api/go/aspire.hosting.javascript/nextjsappresource.md) -- The resource builder for chaining.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [NextJsAppResource](/reference/api/go/aspire.hosting.javascript/nextjsappresource.md) -- `handle`
