Commit 9a64384b authored by chenos's avatar chenos
Browse files

fix: error message "error:0308010C:digital envelope routines::unsupported"

parent d6cb039d
Showing with 4 additions and 0 deletions
+4 -0
......@@ -15,6 +15,10 @@ const env = {
LOCAL_STORAGE_DEST: 'storage/uploads',
};
if ('v18' === process.version.split('.').shift()) {
process.env.NODE_OPTIONS = '--openssl-legacy-provider';
}
dotenv.config({
path: resolve(process.cwd(), process.env.APP_ENV_PATH || '.env'),
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment