chore: madrun: simplify

This commit is contained in:
coderiaser 2026-02-25 17:02:22 +02:00
parent 07bc9e2782
commit 061ab38b24

View file

@ -7,16 +7,7 @@ const testEnv = defineEnv({
css: true,
});
const is17 = /^v1[789]/.test(process.version);
const is20 = process.version.startsWith('v2');
// fix for ERR_OSSL_EVP_UNSUPPORTED on node v17
// flag '--openssl-legacy-provider' not supported
// on earlier version of node.js
//
// https://stackoverflow.com/a/69746937/4536327
const buildEnv = (is17 || is20) && {
NODE_OPTIONS: '--openssl-legacy-provider',
const buildEnv = {
NODE_ENV: 'production',
};