Files
directus/docs/self-hosted
José Varela a3966103bf Packages/Env: Allow casting when reading config value from a file (#22164)
* Allow cast file or default to string

* adopted test

* do not default to string

* added test

* combined tests for reading config from a file

* better function name

* adopted file name

* reference fixes

* another reference fix

* fixed references for mocks

* additional test for type casting of default configs

* replaced equal check with toHaveBeenCalled

* new test file with fewer mocks

* a word regarding this in the docs

* enhanced new test

* test casting to string although string contains comma

* formatting in docs

* tiny tweak regarding readability

* changeset

* added another default type for config variable

* final comments

---------

Co-authored-by: Jan Arends <jan.arends@mailbox.org>
2024-08-08 12:03:33 +02:00
..