diff --git a/web/package.json b/web/package.json index 86317ff63..69178e021 100644 --- a/web/package.json +++ b/web/package.json @@ -7,7 +7,7 @@ "prepare": "cd .. && husky install web/.husky", "analyze": "cross-env ANALYZE=1 yarn run build", "copy-folder": "node --experimental-modules copy-folder.mjs", - "build": "yarn copy-folder monaco-editor ./public/ && NODE_OPTIONS=--max_old_space_size=4096 umi build", + "build": "yarn copy-folder monaco-editor ./public/ && NODE_OPTIONS='--max_old_space_size=4096 --openssl-legacy-provider' umi build", "dev": "yarn run start:dev", "fetch:blocks": "pro fetch-blocks --branch antd@4 && yarn run prettier", "i18n-remove": "pro i18n-remove --locale=zh-CN --write", @@ -21,7 +21,7 @@ "lint:style": "stylelint --fix \"src/**/*.less\"", "prettier": "prettier -c --write \"**/*\"", "site": "yarn run fetch:blocks && yarn run build", - "start": "yarn copy-folder monaco-editor ./public/ && umi dev", + "start": "yarn copy-folder monaco-editor ./public/ && NODE_OPTIONS='--max_old_space_size=4096 --openssl-legacy-provider' umi dev", "start:e2e": "cross-env SERVE_ENV=test yarn run start", "test:e2e": "start-server-and-test 'cross-env SERVE_ENV=test yarn start' http-get://localhost:8000 cypress:run-ci", "test-plugin:e2e": "start-server-and-test 'cross-env SERVE_ENV=test yarn start' http-get://localhost:8000 cypress:run-plugin-ci",