eonx-com / easy-monorepo

The packages to step the f*k up in your projects
MIT License
64 stars 14 forks source link

[EasySwoole] Support JSON env vars #1043

Closed natepage closed 1 year ago

natepage commented 2 years ago

Working with AWS Secrets Manager, it's really simple to inject env vars that are JSON objects containing multiple properties. It would be great to extend easy-swoole to support such things out of the box.

For example, provide a list of env vars name as runtime options and easy-swoole would automatically decode their JSON value and set each individual values from the decoded JSON as its own env var.

natepage commented 1 year ago

Done in #1044