From 5181564a7ebf448acb5caa572bb24dfe8b8f5afe Mon Sep 17 00:00:00 2001 From: Iain Walmsley Date: Fri, 21 Jun 2024 14:50:46 +0100 Subject: [PATCH] fix: adding legacy ssl provider flag until CRA is updated/ejected --- code/workspaces/web-app/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/workspaces/web-app/package.json b/code/workspaces/web-app/package.json index 4b8d22a69..d1fbb0d98 100644 --- a/code/workspaces/web-app/package.json +++ b/code/workspaces/web-app/package.json @@ -62,8 +62,8 @@ "shx": "^0.3.2" }, "scripts": { - "start": "DISABLE_ESLINT_PLUGIN=true react-scripts start", - "build": "react-scripts build && shx rm -rf dist && shx mv build dist", + "start": "NODE_OPTIONS=--openssl-legacy-provider DISABLE_ESLINT_PLUGIN=true react-scripts start", + "build": "NODE_OPTIONS=--openssl-legacy-provider react-scripts build && shx rm -rf dist && shx mv build dist", "test": "react-scripts test --maxWorkers=50%", "test-ci": "CI=true react-scripts test --watchAll=false --runInBand", "test-coverage": "react-scripts test --coverage --watchAll=false",