mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-09 01:39:29 +00:00
Add config system
Introduce ability to change default settings for the app. Currently starting with disabling i18n debug on prod server Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
This commit is contained in:
parent
b835f928a4
commit
7ad08e79c9
3 changed files with 14 additions and 1 deletions
11
src/config.js
Normal file
11
src/config.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const defaults = {};
|
||||
const prod = {
|
||||
i18nDebug: false,
|
||||
};
|
||||
const dev = {
|
||||
i18nDebug: true,
|
||||
};
|
||||
export default {
|
||||
...defaults,
|
||||
settings: process.env.NODE_ENV === 'development' ? dev : prod,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue