From 14248117188270ee8181fd92611fa951a589f0a5 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 16 Sep 2024 20:38:56 +0000 Subject: [PATCH] chore: allow turbo remote cache write only on AWS Codebuild --- scripts/turbo/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/turbo/index.js b/scripts/turbo/index.js index 8b101e64884d..e1086f8c7f0c 100644 --- a/scripts/turbo/index.js +++ b/scripts/turbo/index.js @@ -19,6 +19,9 @@ const runTurbo = async (task, args, apiSecret, apiEndpoint) => { TURBO_TOKEN: apiSecret, TURBO_TEAM: "aws-sdk-js", }), + ...(!process.env.CODEBUILD_BUILD_ARN && { + TURBO_REMOTE_CACHE_READ_ONLY: "1", + }), }, }); } catch (error) {