-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat(login): add --manual
flag
#9998
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
362062a
to
bf7393f
Compare
bf7393f
to
1f24fd6
Compare
|
||
The team id of the Remote Cache team. | ||
Value will be passed as `teamId` in the querystring for all Remote Cache HTTP calls. | ||
Must start with `team_` or it will not be used. |
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.
Future task: Should we warn on this?
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.
Or we remove this behavior? I do not know the reasoning behind it 🤷
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.
Possibly. I think I'd err on caution for now. I don't like changes for auth things without 100% confidence, and we're already making changes. Unless you're 100% on it, I'd just kick the can down the road.
Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
Description
Currently setting up a custom remote cache requires editing multiple files and setting the
TURBO_TOKEN
env var for every command you run that requires the remote cache. Introducingturbo login --manual
which will edit all configuration files required to allow forturbo
to use the remote cache without setting any env vars or editing any files.This command is equivalent to
turbo login
andturbo link
when using the Vercel remote cache.This PR also fixes a bug in our
rewrite_json
module where we didn't correctly rewrite paths if they had more than one element.I suggest reviewing this PR commit by commit.
Testing Instructions
Added unit tests, but going through the flow is the best way to test this.
Screen.Recording.2025-02-18.at.12.20.48.PM.mov