All Templates / Other
Turborepo Remote Cache
Open source implementation of the Turborepo custom remote cache server.
Turborepo Remote Cache
ducktors/turborepo-remote-cache
Just deployed
/app/storage
Deploy a secure, self-hosted Turborepo remote cache on Railway with just a few clicks. This alternative provides you full control over your build cache infrastructure. 🔒
Deploy to Railway by clicking the big purple Deploy Now
button
After deploying, you'll need to configure your Turborepo project to use the new remote cache:
TURBO_TOKEN
: Authentication tokenTURBO_API_URL
: Remote cache endpointTime to modify your code to use the remote cache, but trust me, it's easy.
Set the following environment variables that you copied from the Railway project we just deployed:
# When deploying your code on the same Railway project as this template, you can use ${{"Turborepo Remote Cache".TURBO_TOKEN}}
TURBO_TOKEN={TURBO_TOKEN}
# When deploying your code on the same Railway project as this template, you can use ${{"Turborepo Remote Cache".TURBO_API_URL}}
TURBO_API={TURBO_API_URL}
# Leave this as is
TURBO_TEAM=railway-remote-cache
And in case you prefer .env
file instead of filling out those env variables in your shell everytime, you can use the dotenv-cli
package.
Modify the build
script in your package.json
root to include the following:
dotenv -e .env -- turbo build
Run your Turborepo commands as normal. The remote cache will be automatically utilized:
turbo build
You can verify the remote cache is working by checking your Turborepo build logs. When successful, you'll see:
Remote caching enabled
Join Railway's Discord community for additional support and troubleshooting.
Template Content
Turborepo Remote Cache
ducktors/turborepo-remote-cacheDetails
Thalles Passos's Projects
Created on Nov 19, 2024
17 total projects
3 active projects
100% success on recent deploys
Other
More templates in this category
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform
Lucas's Projects
44
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa
Shahed Nasser's Projects
321