| 559 | } |
| 560 | |
| 561 | export function nextStart( |
| 562 | dir: string, |
| 563 | port: string | number, |
| 564 | opts: NextDevOptions = {} |
| 565 | ) { |
| 566 | if (!opts.disableAutoSkewProtection && shouldUseTurbopack() && !opts.env) { |
| 567 | opts.env ??= {} |
| 568 | opts.env.NEXT_DEPLOYMENT_ID = 'test-dpl-id-1234' |
| 569 | opts.env.__NEXT_IMMUTABLE_ASSET_TOKEN = 'test-immutable-tkn-7890' |
| 570 | } |
| 571 | |
| 572 | return runNextCommandDev( |
| 573 | ['start', '-p', port as string, '--hostname', '::', dir], |
| 574 | undefined, |
| 575 | { ...opts, nextStart: true } |
| 576 | ) |
| 577 | } |
| 578 | |
| 579 | export function buildTS( |
| 580 | args: string[] = [], |