Next.js Discord

Discord Forum

Turborepo Self Hosted Cache

Unanswered
Australian Freshwater Crocodile posted this in #help-forum
Open in Discord
Australian Freshwater CrocodileOP
I'm having problems connecting to the remote cache I setup with ducktors/turborepo-remote-cache as suggested in the docs.

In the docs it says turbo login --api="https://my-server.example.com/api" yet this is just authenticating with Vercel.

According to ducktors/turborepo-remote-cache docs I did add the following .env:
TURBO_TEAM=
TURBO_TOKEN=
TURBO_API=


and I added a config.json in the root .turbo folder with the apiurl.

When running bun run build, "Remote caching disabled".
However, if I pass in the --team and --token it does use the cache - however this can't take advantage of secure env, and is a pain for DX needing to manually change scripts locally.

What is happening here?

0 Replies