Skip to content
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

[Bug]: Custom remote cache builds cannot be triggered on Vercel #651

Closed
AdiRishi opened this issue Aug 28, 2024 · 5 comments
Closed

[Bug]: Custom remote cache builds cannot be triggered on Vercel #651

AdiRishi opened this issue Aug 28, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@AdiRishi
Copy link
Owner

There have been bug reports that this project cannot be used when using Vercel builds for CI.

Reported here - #537 (comment)

I meant to enable the remote cache on Vercel builds.
Followed your instructions but vercel seems to inject their own teamId overwriting the specified env TURBO_TEAM, disabling access to the cloudflare cache

@AdiRishi AdiRishi added the bug Something isn't working label Aug 28, 2024
@shunkakinoki
Copy link

Thank you so much for the issue @AdiRishi

Please let me know how can I help 🙇‍♂️

@shunkakinoki
Copy link

@AdiRishi Any updates on your side? Would love to help make this work 🙏

@AdiRishi
Copy link
Owner Author

AdiRishi commented Oct 6, 2024

Hey @shunkakinoki I spent a bunch of time trying to experiement with this on Vercel. Basically what's happening is that Vercel will override the TURBO_TOKEN environment variable.
In my testing, it was making requests to the Cloudflare server, but they are all rejected as the value of TURBO_TOKEN is wrong.

Since that token it injects is a JWT, I doubt you'd be able to save it raw and use it as well.
I've asked about this on the Vercel community forum, lets see what they say - https://vercel.community/t/how-to-stop-vercel-from-injecting-and-overriding-the-turbo-token-env-var/1401

@AdiRishi
Copy link
Owner Author

@shunkakinoki Vercel has completed their fix for this and I've confirmed it works.
Here's how I had my environment variabels setup when testing on Vercel
Screenshot 2024-10-29 at 5 21 13 PM

Closing this issue now. Feel free to re-open if it doesn't work for you.

@shunkakinoki
Copy link

@AdiRishi Thank you so much for your tireless work - appreciate digging into this 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants