fix(cli): remove process.env.NODE_OPTIONS

This commit is contained in:
chenos 2022-07-05 13:10:50 +08:00
parent 1e7746292f
commit 7c7fd1bb5e
3 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Release Notes # Release Notes
## 2022/07/05 ~ v0.7.1-alpha.1 ## 2022/07/05 ~ v0.7.2-alpha.1
### New features ### New features

View File

@ -1,6 +1,6 @@
# 更新日志 # 更新日志
## 2022/07/05 ~ v0.7.1-alpha.1 ## 2022/07/05 ~ v0.7.2-alpha.1
### New features ### New features

View File

@ -17,10 +17,6 @@ const env = {
LOCAL_STORAGE_DEST: 'storage/uploads', LOCAL_STORAGE_DEST: 'storage/uploads',
}; };
if ('v18' === process.version.split('.').shift()) {
process.env.NODE_OPTIONS = '--openssl-legacy-provider';
}
if (!process.env.APP_ENV_PATH && process.argv[2] && process.argv[2] === 'test') { if (!process.env.APP_ENV_PATH && process.argv[2] && process.argv[2] === 'test') {
if (existsSync(resolve(process.cwd(), '.env.test'))) { if (existsSync(resolve(process.cwd(), '.env.test'))) {
process.env.APP_ENV_PATH = '.env.test'; process.env.APP_ENV_PATH = '.env.test';