0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed build script not working on Node 18.x

- `yarn start:dev` was failing with `error:0308010C:digital envelope routines::unsupported` without the `--openssl-legacy-provider` option on Node 18. Currently react-scripts@4.x doesn't support Node 18, so until we upgrade to use react-scripts@5.x we'll need to pass in this change for build scripts
This commit is contained in:
Rishabh 2023-03-14 15:36:57 +05:30
parent be7e3f3e62
commit 7aa1281e45

View file

@ -33,9 +33,9 @@
"scripts": {
"start": "PORT=4000 BROWSER=none react-scripts start",
"start:combined": "PORT=4000 BROWSER=none node ./scripts/start-combined.js",
"start:dev": "PORT=4000 node ./scripts/start-mode.js",
"start:dev": "NODE_OPTIONS=--openssl-legacy-provider PORT=4000 node ./scripts/start-mode.js",
"dev": "node ./scripts/dev-mode.js",
"build": "npm run build:combined",
"build": "NODE_OPTIONS=--openssl-legacy-provider npm run build:combined",
"build:original": "react-scripts build",
"build:combined": "node ./scripts/build-combined.js",
"build:bundle": "webpack --config webpack.config.js",