Skip to content

[cli] Add target flag to vc build#11858

Merged
kodiakhq[bot] merged 4 commits intomainfrom
austinmerrick/zero-2185-add-target-option-to-vc-build
Jul 17, 2024
Merged

[cli] Add target flag to vc build#11858
kodiakhq[bot] merged 4 commits intomainfrom
austinmerrick/zero-2185-add-target-option-to-vc-build

Conversation

@onsclom
Copy link
Copy Markdown
Contributor

@onsclom onsclom commented Jul 15, 2024

Adds vc build --target which can be production or preview in preparation of custom environments.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jul 15, 2024

🦋 Changeset detected

Latest commit: 93efd8b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vercel Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@onsclom onsclom marked this pull request as ready for review July 16, 2024 16:10
Copy link
Copy Markdown
Contributor

@jeffsee55 jeffsee55 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers from me, just a couple of questions. Looks good!

}
});

it('should pull "production" env vars with `--target production`', async () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice test 👍

non-blocking: Do we have anything in place to test this with a custom environment target? Would be nice to get those in place but seems like we may not have all the pieces for that yet


// Build `target` influences which environment variables will be used
const target = parsedArgs.flags['--prod'] ? 'production' : 'preview';
const target = parsedArgs.flags['--prod']
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-blocking: do we want to throw if both --prod and --target are provided?

@kodiakhq kodiakhq bot merged commit ad76d4c into main Jul 17, 2024
@kodiakhq kodiakhq bot deleted the austinmerrick/zero-2185-add-target-option-to-vc-build branch July 17, 2024 18:06
trek pushed a commit that referenced this pull request Jul 18, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Minor Changes

- Add target flag to vc build
([#11858](#11858))

### Patch Changes

- Better error message when calling logs command without a deployment
url ([#11877](#11877))

- Updated dependencies
\[[`9d9b2fee6`](9d9b2fe)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Revert "warn on mismatched corepack and detected package managers"
([#11879](#11879))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`9d9b2fee6`](9d9b2fe)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- [edge] deprecate `ipAddress` & `geolocation`.
([#11869](#11869))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`9d9b2fee6`](9d9b2fe)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`9d9b2fee6`](9d9b2fe)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/[email protected]

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`9d9b2fee6`](9d9b2fe)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Minor Changes

- Add target flag to vc build
([#11858](vercel/vercel#11858))

### Patch Changes

- Better error message when calling logs command without a deployment
url ([#11877](vercel/vercel#11877))

- Updated dependencies
\[[`6232a55eb`](vercel/vercel@6232a55)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Revert "warn on mismatched corepack and detected package managers"
([#11879](vercel/vercel#11879))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`6232a55eb`](vercel/vercel@6232a55)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- [edge] deprecate `ipAddress` & `geolocation`.
([#11869](vercel/vercel#11869))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`6232a55eb`](vercel/vercel@6232a55)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`6232a55eb`](vercel/vercel@6232a55)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/[email protected]

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`6232a55eb`](vercel/vercel@6232a55)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants