(
dir: string,
args: string[] = [],
opts: NextOptions = {}
)
| 531 | } |
| 532 | |
| 533 | export function nextBuild( |
| 534 | dir: string, |
| 535 | args: string[] = [], |
| 536 | opts: NextOptions = {} |
| 537 | ) { |
| 538 | if (!opts.disableAutoSkewProtection && shouldUseTurbopack() && !opts.env) { |
| 539 | opts.env ??= {} |
| 540 | opts.env.NEXT_DEPLOYMENT_ID = 'test-dpl-id-1234' |
| 541 | opts.env.__NEXT_IMMUTABLE_ASSET_TOKEN = 'test-immutable-tkn-7890' |
| 542 | } |
| 543 | |
| 544 | return runNextCommand(['build', dir, ...args], opts) |
| 545 | } |
| 546 | |
| 547 | export function nextTest( |
| 548 | dir: string, |