Skip to content

Commit 2f2902e

Browse files
committed
fix: typescript
1 parent 25c70fa commit 2f2902e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/remote-cache/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async function turboRemoteCache(
1212
provider?: STORAGE_PROVIDERS
1313
},
1414
) {
15-
const bodyLimit = instance.config.BODY_LIMIT ?? 104857600
15+
const bodyLimit = <number>instance.config.BODY_LIMIT
1616
const { allowedTokens, apiVersion = 'v8', provider = STORAGE_PROVIDERS.LOCAL } = options
1717
if (!(Array.isArray(allowedTokens) && allowedTokens.length)) {
1818
throw new Error(
@@ -53,7 +53,7 @@ async function turboRemoteCache(
5353
clientEmail: instance.config.GCS_CLIENT_EMAIL,
5454
privateKey: instance.config.GCS_PRIVATE_KEY,
5555
projectId: instance.config.GCS_PROJECT_ID,
56-
useTmp: instance.config.STORAGE_PATH_USE_TMP_FOLDER ?? true,
56+
useTmp: !!instance.config.STORAGE_PATH_USE_TMP_FOLDER,
5757
}),
5858
)
5959

0 commit comments

Comments
 (0)