Files
directus/docs/guides
Pascal Jufer a2a35aaab5 Add support for _FILE environment variables (#6101)
* Add support for _FILE environment variables

* Enhance processing of _FILE env vars

* Same processing as with other env vars (do not simply treat as string)
- tested successfully
* Warn if both variables are set (EXAMPLE and EXAMPLE_FILE)
* Add comments to make it easier to understand the code

* Set newKey only after file read was successful

* Don't convert value > MAX_SAFE_INTEGER to number

Thanks to @skizer!

As stated by @skizer (from #6119):
  Altho it seems that we do have a numerical value
  it can happen that its outside of Number.MAX_SAFE_INTEGER
  thus resulting in a change of the original intended value
  e.g oauth -> discord -> client_id

* Fix recursive logger-env import

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-06-09 14:08:26 -04:00
..
2021-02-26 10:07:41 -05:00
2021-06-08 10:14:00 -04:00
2021-06-08 15:59:55 -04:00
2021-04-21 15:57:26 -04:00
2021-04-21 15:57:26 -04:00
2021-05-04 18:52:08 -04:00
2021-05-04 18:52:08 -04:00
2021-05-04 18:52:08 -04:00
2021-05-04 18:52:08 -04:00
2021-04-21 15:57:26 -04:00
2021-05-04 18:52:08 -04:00
2021-06-07 09:47:04 -04:00
2021-05-04 18:52:08 -04:00
2021-04-28 08:51:35 -04:00
2021-05-04 18:52:08 -04:00
2021-05-04 18:52:08 -04:00