api/env: unquote variables if needed
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled

This commit is contained in:
jj 2025-05-25 12:44:40 +00:00
parent ba2d266de7
commit c392864c82
No known key found for this signature in database

View File

@ -120,8 +120,12 @@ const reloadEnvs = async (contents) => {
continue; continue;
} }
const [ key, value ] = line.split(/=(.+)?/); let [ key, value ] = line.split(/=(.+)?/);
if (key) { if (key) {
if (value.match(/^['"]/) && value.match(/['"]$/)) {
value = JSON.parse(value);
}
newEnvs[key] = value || ''; newEnvs[key] = value || '';
} }
} }