tlaverdure / laravel-echo-server

Socket.io server for Laravel Echo
MIT License
2.65k stars 510 forks source link

Environment Varibles in laravel-echo-server.json #463

Open Dolaned opened 4 years ago

Dolaned commented 4 years ago

Are we able to say merge config variables or use something like this in order to be able to use process.env in the config file, such as this? https://stackoverflow.com/questions/36962601/node-js-how-to-use-environment-variables-in-json-file

otanim commented 3 years ago

Hi @Dolaned, this might be a late response, anyway, What you're looking for is most likely the following topic in the README: https://github.com/tlaverdure/laravel-echo-server#dotenv

If a .env file is found in the same directory as the laravel-echo-server.json file, particular options can be overridden, for more info check the documentation.