# DisableBuildValidation

- Module: [Aspire.Hosting.JavaScript](/reference/api/go/aspire.hosting.javascript.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`NextJsAppResource`](/reference/api/go/aspire.hosting.javascript/nextjsappresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

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
func (NextJsAppResource) 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()`.

## Applies to

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