Skip to content

Commit 354c56c

Browse files
committed
Fix Node.js v23 compatibility by adding OpenSSL legacy provider flag
1 parent 4a0cc11 commit 354c56c

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

.env.example

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
REACT_APP_BASE_URL=http://localhost:9002
2-
REACT_APP_ASSETS_BUCKET=https://lightence-assets.s3.amazonaws.com
3-
4-
# more info https://create-react-app.dev/docs/advanced-configuration
5-
ESLINT_NO_DEV_ERRORS=
6-
TSC_COMPILE_ON_ERROR=
1+
NODE_OPTIONS=--openssl-legacy-provider

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@
8383
"workbox-streams": "^5.1.3"
8484
},
8585
"scripts": {
86-
"start": "yarn buildThemes && craco start",
87-
"build": "yarn buildThemes && craco build",
88-
"test": "craco test",
89-
"eject": "craco eject",
86+
"start": "NODE_OPTIONS=--openssl-legacy-provider yarn buildThemes && NODE_OPTIONS=--openssl-legacy-provider craco start",
87+
"build": "NODE_OPTIONS=--openssl-legacy-provider yarn buildThemes && NODE_OPTIONS=--openssl-legacy-provider craco build",
88+
"test": "NODE_OPTIONS=--openssl-legacy-provider craco test",
89+
"eject": "NODE_OPTIONS=--openssl-legacy-provider craco eject",
9090
"lint": "eslint \"*/**/*.{js,ts,tsx}\" --fix",
9191
"lint:styles": "stylelint '*/**/*.{js,ts,tsx}'",
9292
"prepare": "husky install",
93-
"buildThemes": "lessc --js --clean-css=\"--s1 --advanced\" src/styles/themes/main.less public/themes/main.css"
93+
"update-browserslist": "npx update-browserslist-db@latest",
94+
"buildThemes": "NODE_OPTIONS=--openssl-legacy-provider lessc --js --clean-css=\"--s1 --advanced\" src/styles/themes/main.less public/themes/main.css"
9495
},
9596
"browserslist": [
9697
">0.2%",

0 commit comments

Comments
 (0)