From e1163cdac0e2a56e7b9b9886c60e3a7b069d1c2e Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 29 Jan 2024 21:02:46 +0800 Subject: [PATCH] fix: set `CBOR_NATIVE_ACCELERATION_DISABLED` to `true` Signed-off-by: Innei --- apps/core/src/global/index.global.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/core/src/global/index.global.ts b/apps/core/src/global/index.global.ts index e2d8101f..33390068 100644 --- a/apps/core/src/global/index.global.ts +++ b/apps/core/src/global/index.global.ts @@ -58,7 +58,7 @@ function registerGlobal() { function nodeEnvInjection() { // # https://github.com/kriszyp/cbor-x/blob/master/node-index.js#L16 https://github.com/kriszyp/cbor-x/blob/master/node-index.js#L10 // # ncc not support runtime require so disable ACCELERATION - process.env['CBOR_NATIVE_ACCELERATION_DISABLED'] = '1' + process.env['CBOR_NATIVE_ACCELERATION_DISABLED'] = 'true' } export function register() {