From 13b5c6dbf8835cf33ac9bfc1a8008187d7391756 Mon Sep 17 00:00:00 2001 From: CasperL1218 Date: Sun, 19 Apr 2026 13:01:43 -0400 Subject: [PATCH] Add NODE_OPTIONS=--openssl-legacy-provider to build script webpack 4 (bundled with react-scripts 4) uses legacy OpenSSL digest algorithms not supported in Node 18. The start script already had this flag; the build script was missing it, causing ERR_OSSL_EVP_UNSUPPORTED on Heroku. --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index a6932cc5..a97cf06f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -35,7 +35,7 @@ "scripts": { "start": "NODE_OPTIONS=--openssl-legacy-provider env-cmd -f ../.env.dev react-scripts start", "start-prod": "env-cmd -f ../.env.prod react-scripts start", - "build": "react-scripts build", + "build": "NODE_OPTIONS=--openssl-legacy-provider react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "lint": "eslint . --ext .ts --ext .tsx",