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:
parent
be7e3f3e62
commit
7aa1281e45
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue