We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b06672 commit 3ed7080Copy full SHA for 3ed7080
src/v3/config/README.md
@@ -101,3 +101,21 @@ const osjs = new Core(config, {
101
omit: ['ws.port']
102
});
103
```
104
+
105
+## Dotenv
106
107
+You can provide configuration via a dotenv (`.env`) file to make make it dynamic.
108
109
+This applies to both the client and the server
110
111
+```
112
+OSJS_STANDALONE=true
113
114
115
+And in your `src/client/config.js` file:
116
117
+```javascript
118
+{
119
+ standalone: process.env.OSJS_STANDALONE === 'true'
120
+}
121
0 commit comments