Currently we only substitute env vars during a deploy to the cloud. We should help local dev by doing it for a local transact too.
Code:
// Set configured environment variables
if (config.env) {
for (const [key, value] of Object.entries(config.env)) {
if (typeof value === "string") {
process.env[key] = value;
} else {
console.warn(`Invalid value type for environment variable ${key}: ${typeof value}`);
}
}
}
Currently we only substitute env vars during a deploy to the cloud. We should help local dev by doing it for a local transact too.
Code: