diff --git a/Adding-new-Snap-settings-to-code.md b/Adding-new-Snap-settings-to-code.md index 2aabf25..1149fb4 100644 --- a/Adding-new-Snap-settings-to-code.md +++ b/Adding-new-Snap-settings-to-code.md @@ -10,6 +10,14 @@ After doing all changes, [fix lint errors](https://github.com/wekan/wekan/wiki/D Submit pull request to Wekan edge branch https://github.com/wekan/wekan/tree/edge +# Changes to server code + +To use environment variables in your serverside code, use: +``` +process.env.YOURSETTING +``` +Example: [wekan/server/policy.js](https://github.com/wekan/wekan/blob/edge/server/policy.js) + # Changes to [config](https://github.com/wekan/wekan/blob/edge/snap-src/bin/config) ## 1) Add to beginning