-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(vercel): exit dev command on error #13438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: c401ae8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
clearTimeout(timeout); | ||
controller.abort(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always clean up oidc refresh even if dev server has an error
envValues[VERCEL_OIDC_TOKEN] = token; | ||
await devServer.runDevCommand(true); | ||
telemetry.trackOidcTokenRefresh(++refreshCount); | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required to ensure an error from the dev server is surfaced to the user and not an AbortError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but let's give @markandrus time to chime in.
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 ## vercel@43.1.0 ### Minor Changes - Add blob subcommand ([#13364](#13364)) These are the new API's: `vc blob store add mystore` - creates a new blob store, asks to connect store to project and suggests pulling the new env var `vc blob store rm store_mystoreid` - delete a blob store All of the following commands will try to read the `BLOB_READ_WRITE_TOKEN` from the next `.env.local` file: `vc blob put file.txt` - uploads the file from the path to the blob store `vc blob ls` - list blobs in the store `vc blob del path/ path2/` - delete blobs from the store `vc blob copy fromUrl toPathname` - copies a file within the store ### Patch Changes - Fix bug where `vercel dev` would not exit on error ([#13438](#13438)) ## @vercel/functions@2.2.0 ### Minor Changes - Introduce `getVercelOidcTokenSync` ([#13429](#13429)) ## @vercel/client@15.3.5 ### Patch Changes - Updated dependencies \[[`b5fed7cca786d93b7c88af275ce1dca5e5b59098`](b5fed7c)]: - @vercel/routing-utils@5.0.7 ## @vercel/fs-detectors@5.4.4 ### Patch Changes - Updated dependencies \[[`b5fed7cca786d93b7c88af275ce1dca5e5b59098`](b5fed7c)]: - @vercel/routing-utils@5.0.7 ## @vercel/routing-utils@5.0.7 ### Patch Changes - Fixed TS literal type inference for compatibility with json-schema-to-ts ([#13446](#13446)) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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 ## vercel@43.1.0 ### Minor Changes - Add blob subcommand ([#13364](vercel/vercel#13364)) These are the new API's: `vc blob store add mystore` - creates a new blob store, asks to connect store to project and suggests pulling the new env var `vc blob store rm store_mystoreid` - delete a blob store All of the following commands will try to read the `BLOB_READ_WRITE_TOKEN` from the next `.env.local` file: `vc blob put file.txt` - uploads the file from the path to the blob store `vc blob ls` - list blobs in the store `vc blob del path/ path2/` - delete blobs from the store `vc blob copy fromUrl toPathname` - copies a file within the store ### Patch Changes - Fix bug where `vercel dev` would not exit on error ([#13438](vercel/vercel#13438)) ## @vercel/functions@2.2.0 ### Minor Changes - Introduce `getVercelOidcTokenSync` ([#13429](vercel/vercel#13429)) ## @vercel/client@15.3.5 ### Patch Changes - Updated dependencies \[[`7462ba8a07c07bb8ce426e13ad539b32b58c07ff`](vercel/vercel@7462ba8)]: - @vercel/routing-utils@5.0.7 ## @vercel/fs-detectors@5.4.4 ### Patch Changes - Updated dependencies \[[`7462ba8a07c07bb8ce426e13ad539b32b58c07ff`](vercel/vercel@7462ba8)]: - @vercel/routing-utils@5.0.7 ## @vercel/routing-utils@5.0.7 ### Patch Changes - Fixed TS literal type inference for compatibility with json-schema-to-ts ([#13446](vercel/vercel#13446)) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Reenable test disabled in #13436
According to
git bisect
#13226 broke this behavior. Unsure of how the passed on CI/up until recently as it was definitely broken.It looks like the
AbortController
prevented the process from exiting.