fastify / env-schema

Validate your env variable using Ajv and dotenv
MIT License
212 stars 25 forks source link

config.data in the README file has to be config.ALLOWED_HOSTS? #146

Closed aderchox closed 1 year ago

aderchox commented 1 year ago

Prerequisites

Issue

In the README file, below an example you have this comment:

// config.data => ['127.0.0.1', '0.0.0.0']

but it seems that it has to be this:

// config.ALLOWED_HOSTS => ['127.0.0.1', '0.0.0.0']

I tried on Runkit too, config.data logs undefined. Or I might be missing something...

Eomm commented 1 year ago

Thanks for reporting and yes you are right! Would you like to send a Pull Request to address this issue?