fix: error message "error:0308010C:digital envelope routines::unsupported"
This commit is contained in:
parent
d6cb039d21
commit
9a64384bc1
@ -15,6 +15,10 @@ 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';
|
||||||
|
}
|
||||||
|
|
||||||
dotenv.config({
|
dotenv.config({
|
||||||
path: resolve(process.cwd(), process.env.APP_ENV_PATH || '.env'),
|
path: resolve(process.cwd(), process.env.APP_ENV_PATH || '.env'),
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user