diff --git a/aio_run.mjs b/aio_run.mjs index 3dbe7141..504942fd 100644 --- a/aio_run.mjs +++ b/aio_run.mjs @@ -36,6 +36,7 @@ function runChildProcessWithPrefix(command, args, prefix) { const envFileContent = Object.entries(process.env) .filter(([env]) => env.startsWith("VITE_")) + .sort(([envA], [envB]) => envA.localeCompare(envB)) .map(([env, val]) => `${env}=${ (val.startsWith("\"") && val.endsWith("\"")) ? val diff --git a/packages/hoppscotch-selfhost-web/prod_run.mjs b/packages/hoppscotch-selfhost-web/prod_run.mjs index 57a68a77..c50f5459 100755 --- a/packages/hoppscotch-selfhost-web/prod_run.mjs +++ b/packages/hoppscotch-selfhost-web/prod_run.mjs @@ -4,6 +4,7 @@ import fs from "fs" const envFileContent = Object.entries(process.env) .filter(([env]) => env.startsWith("VITE_")) + .sort(([envA], [envB]) => envA.localeCompare(envB)) .map( ([env, val]) => `${env}=${val.startsWith('"') && val.endsWith('"') ? val : `"${val}"`}` diff --git a/packages/hoppscotch-sh-admin/prod_run.mjs b/packages/hoppscotch-sh-admin/prod_run.mjs index d571aff5..12243f97 100755 --- a/packages/hoppscotch-sh-admin/prod_run.mjs +++ b/packages/hoppscotch-sh-admin/prod_run.mjs @@ -34,6 +34,7 @@ function runChildProcessWithPrefix(command, args, prefix) { const envFileContent = Object.entries(process.env) .filter(([env]) => env.startsWith('VITE_')) + .sort(([envA], [envB]) => envA.localeCompare(envB)) .map( ([env, val]) => `${env}=${val.startsWith('"') && val.endsWith('"') ? val : `"${val}"`}`